diff --git a/pkgs/development/python-modules/chacha20poly1305/default.nix b/pkgs/development/python-modules/chacha20poly1305/default.nix new file mode 100644 index 000000000000..d4f88b0a7349 --- /dev/null +++ b/pkgs/development/python-modules/chacha20poly1305/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "chacha20poly1305"; + version = "0.0.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-8vAFx89GOP+k/wbALHh0gGi2QpFnlcbRbHzF41XnDt8="; + }; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "chacha20poly1305" + ]; + + meta = with lib; { + description = "Module that implements ChaCha20Poly1305"; + homepage = "https://github.com/ph4r05/py-chacha20poly1305"; + license = licenses.mit; + maintainers = with maintainers; [ wolfangaukang ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c68af36f28b2..aa2f29d61ef0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1749,6 +1749,8 @@ in { cgroup-utils = callPackage ../development/python-modules/cgroup-utils { }; + chacha20poly1305 = callPackage ../development/python-modules/chacha20poly1305 { }; + chacha20poly1305-reuseable = callPackage ../development/python-modules/chacha20poly1305-reuseable { }; chai = callPackage ../development/python-modules/chai { };