mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
7a6d18c8e7
https://github.com/multiformats/py-multihash/releases/tag/v2.0.1 The `variants` package is not in the list of requirements for py-multihash, so remove it. Switch to `pytestCheckHook` for the tests instead of using `pytest`. Also slightly change the Python version requirements check.
49 lines
851 B
Nix
49 lines
851 B
Nix
{ base58
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
, morphys
|
|
, pytest-runner
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
, varint
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-multihash";
|
|
version = "2.0.1";
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "multiformats";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pytest-runner
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
base58
|
|
morphys
|
|
six
|
|
varint
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|