pythonPackages.py-multibase: init at 1.0.1

This commit is contained in:
Rakesh Gupta 2020-04-14 10:31:37 +05:30 committed by Jon
parent ef8ea1e556
commit 90c1406964
2 changed files with 48 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };