Merge pull request #114980 from fabaff/ge25519

This commit is contained in:
Sandro
2021-03-07 04:01:44 +01:00
committed by GitHub
6 changed files with 180 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, parts
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "bitlist";
version = "0.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "04dz64r21a39p8wph5qlhvs5y873qgk6xxjlzw8n695b8jm3ixir";
};
propagatedBuildInputs = [
parts
];
checkInputs = [
pytestCheckHook
nose
];
pythonImportsCheck = [ "bitlist" ];
meta = with lib; {
description = "Python library for working with little-endian list representation of bit strings";
homepage = "https://github.com/lapets/bitlist";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,39 @@
{ lib
, bitlist
, buildPythonPackage
, fetchPypi
, fountains
, parts
, nose
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "fe25519";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1m85qvw9dwxk81mv9k45c9n75pk8wqn70qkinqh56h5zv56vgq24";
};
propagatedBuildInputs = [
bitlist
fountains
parts
];
checkInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [ "fe25519" ];
meta = with lib; {
description = "Python field operations for Curve25519's prime";
homepage = "https://github.com/BjoernMHaase/fe25519";
license = with licenses; [ cc0 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, bitlist
}:
buildPythonPackage rec {
pname = "fountains";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "0jk5y099g6ggaq5lwp0jlg4asyhcdxnl3him3ibmzc1k9nnknp30";
};
propagatedBuildInputs = [
bitlist
];
# Project has no test
doCheck = false;
pythonImportsCheck = [ "fountains" ];
meta = with lib; {
description = "Python library for generating and embedding data for unit testing";
homepage = "https://github.com/reity/fountains";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,41 @@
{ lib
, bitlist
, buildPythonPackage
, fe25519
, fetchPypi
, fountains
, nose
, parts
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ge25519";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1wgv0vqg8iv9y5d7if14gmcgslwd5zzgk322w9jaxdfbndldddik";
};
propagatedBuildInputs = [
fe25519
parts
bitlist
fountains
];
checkInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [ "ge25519" ];
meta = with lib; {
description = "Python implementation of Ed25519 group elements and operations";
homepage = "https://github.com/nthparty/ge25519";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,25 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "parts";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "1ym238hxwsw15ivvf6gzmkmla08b9hwhdyc3v6rs55wga9j3a4db";
};
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "parts" ];
meta = with lib; {
description = "Python library for common list functions related to partitioning lists";
homepage = "https://github.com/lapets/parts";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}