3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/py-multibase/default.nix

47 lines
930 B
Nix
Raw Normal View History

{ buildPythonPackage
, fetchPypi
, isPy27
, lib
, morphys
, pytest
, pytestrunner
, python-baseconv
, six
}:
buildPythonPackage rec {
pname = "py-multibase";
version = "1.0.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version ;
sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4";
};
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 ];
};
2020-08-25 03:07:09 +01:00
}