From a9655812a39c4e6d0e16f3d75cf04b724bf32071 Mon Sep 17 00:00:00 2001 From: Rakesh Gupta Date: Mon, 13 Apr 2020 13:56:13 +0530 Subject: [PATCH] pythonPackages.py-multihash: init at 0.2.3 --- .../python-modules/py-multihash/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/py-multihash/default.nix diff --git a/pkgs/development/python-modules/py-multihash/default.nix b/pkgs/development/python-modules/py-multihash/default.nix new file mode 100644 index 000000000000..f81b7fb76440 --- /dev/null +++ b/pkgs/development/python-modules/py-multihash/default.nix @@ -0,0 +1,49 @@ +{ base58 +, buildPythonPackage +, fetchPypi +, isPy27 +, lib +, morphys +, pytest +, pytestcov +, pytestrunner +, six +, variants +, varint +}: + +buildPythonPackage rec { + pname = "py-multihash"; + version = "0.2.3"; + + src = fetchPypi { + inherit pname version ; + sha256 = "f0ade4de820afdc4b4aaa40464ec86c9da5cae3a4578cda2daab4b0eb7e5b18d"; + }; + + nativeBuildInputs = [ + pytestrunner + ]; + + propagatedBuildInputs = [ + base58 + morphys + six + variants + varint + ]; + + checkInputs = [ + pytest + pytestcov + ]; + + disabled = isPy27; + + meta = with lib; { + description = "Self describing hashes - for future proofing"; + homepage = "https://github.com/multiformats/py-multihash"; + license = licenses.mit; + maintainers = with maintainers; [ rakesh4g ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c40c63371855..a706d420e7b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1129,6 +1129,8 @@ in { py-lru-cache = callPackage ../development/python-modules/py-lru-cache { }; + py-multihash = callPackage ../development/python-modules/py-multihash { }; + py-radix = callPackage ../development/python-modules/py-radix { }; pydbus = callPackage ../development/python-modules/pydbus { };