2020-04-13 09:26:13 +01:00
|
|
|
{ base58
|
|
|
|
, buildPythonPackage
|
2020-10-26 22:18:35 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-13 09:26:13 +01:00
|
|
|
, lib
|
|
|
|
, morphys
|
2021-02-08 19:54:13 +00:00
|
|
|
, pytest-runner
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-13 09:26:13 +01:00
|
|
|
, six
|
|
|
|
, varint
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-multihash";
|
2021-02-08 19:54:13 +00:00
|
|
|
version = "2.0.1";
|
|
|
|
disabled = pythonOlder "3.4";
|
2020-04-13 09:26:13 +01:00
|
|
|
|
2020-10-26 22:18:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "multiformats";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-08 19:54:13 +00:00
|
|
|
sha256 = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
|
2020-04-13 09:26:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-08 19:54:13 +00:00
|
|
|
pytest-runner
|
2020-04-13 09:26:13 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
base58
|
|
|
|
morphys
|
|
|
|
six
|
|
|
|
varint
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-08 19:54:13 +00:00
|
|
|
pytestCheckHook
|
2020-04-13 09:26:13 +01:00
|
|
|
];
|
|
|
|
|
2020-10-26 22:18:35 +00:00
|
|
|
pythonImportsCheck = [ "multihash" ];
|
|
|
|
|
2020-04-13 09:26:13 +01:00
|
|
|
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-08-25 03:07:09 +01:00
|
|
|
}
|