0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00
nixpkgs/pkgs/development/python-modules/py-multihash/default.nix
2025-05-25 03:23:49 +02:00

46 lines
879 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 = "py-multihash";
tag = "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 ];
};
}