From 90c140696438f3e8a7f9d726f25115d535f81872 Mon Sep 17 00:00:00 2001 From: Rakesh Gupta Date: Tue, 14 Apr 2020 10:31:37 +0530 Subject: [PATCH] pythonPackages.py-multibase: init at 1.0.1 --- .../python-modules/py-multibase/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/py-multibase/default.nix diff --git a/pkgs/development/python-modules/py-multibase/default.nix b/pkgs/development/python-modules/py-multibase/default.nix new file mode 100644 index 000000000000..59876b473a91 --- /dev/null +++ b/pkgs/development/python-modules/py-multibase/default.nix @@ -0,0 +1,46 @@ +{ buildPythonPackage +, fetchPypi +, isPy27 +, lib +, morphys +, pytest +, pytestrunner +, python-baseconv +, six +}: +buildPythonPackage rec { + pname = "py-multibase"; + version = "1.0.1"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version ; + sha256 = "6ed706ea321b487ba82e4172a9c82d61dacd675c865f576a937a94bca1a23443"; + }; + + postPatch = '' + substituteInPlace setup.cfg --replace "[pytest]" "" + substituteInPlace setup.cfg --replace "python_classes = *TestCase" "" + ''; + + nativeBuildInputs = [ + pytestrunner + ]; + + propagatedBuildInputs = [ + morphys + six + python-baseconv + ]; + + checkInputs = [ + pytest + ]; + + meta = with lib; { + description = "Multibase is a protocol for distinguishing base encodings and other simple string encodings"; + homepage = "https://github.com/multiformats/py-multibase"; + 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 a706d420e7b4..ad22e5dbcd16 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-multibase = callPackage ../development/python-modules/py-multibase { }; + py-multihash = callPackage ../development/python-modules/py-multihash { }; py-radix = callPackage ../development/python-modules/py-radix { };