diff --git a/pkgs/development/python-modules/ge25519/default.nix b/pkgs/development/python-modules/ge25519/default.nix new file mode 100644 index 000000000000..0e8d3722fbec --- /dev/null +++ b/pkgs/development/python-modules/ge25519/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 137826f0e7c4..bd6cc68d213e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2530,6 +2530,8 @@ in { gdrivefs = callPackage ../development/python-modules/gdrivefs { }; + ge25519 = callPackage ../development/python-modules/ge25519 { }; + geant4 = disabledIf (!isPy3k) (toPythonModule (pkgs.geant4.override { enablePython = true; python3 = python;