fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
46 lines
880 B
Nix
46 lines
880 B
Nix
{
|
|
lib,
|
|
base58,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
morphys,
|
|
pytestCheckHook,
|
|
six,
|
|
varint,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-multihash";
|
|
version = "2.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "multiformats";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "'pytest-runner', " ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
base58
|
|
morphys
|
|
six
|
|
varint
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "multihash" ];
|
|
|
|
meta = with lib; {
|
|
description = "Self describing hashes - for future proofing";
|
|
homepage = "https://github.com/multiformats/py-multihash";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
};
|
|
}
|