2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, lib
|
|
|
|
, morphys
|
|
|
|
, pytest
|
|
|
|
, pytestrunner
|
|
|
|
, python-baseconv
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-multibase";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version ;
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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-09-25 04:45:31 +00:00
|
|
|
}
|