2020-04-24 23:36:52 +00:00
|
|
|
{ base58
|
|
|
|
, buildPythonPackage
|
2020-11-12 09:05:59 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy27
|
|
|
|
, lib
|
|
|
|
, morphys
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
|
|
|
, six
|
|
|
|
, variants
|
|
|
|
, varint
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-multihash";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "multiformats";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "07qglrbgcb8sr9msqw2v7dqj9s4rs6nyvhdnx02i5w6xx5ibzi3z";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
base58
|
|
|
|
morphys
|
|
|
|
six
|
|
|
|
variants
|
|
|
|
varint
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
];
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
pythonImportsCheck = [ "multihash" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
2020-11-19 00:13:47 +00:00
|
|
|
broken = true; # no longer compatible with base58, no updates in 5 years. Added 2020-11-05
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|