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