Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / py-multihash / default.nix
blob9ae0d1a1d3dbd3e9448fd30a92333a388e3b0bbc
1 { lib
2 , base58
3 , buildPythonPackage
4 , fetchFromGitHub
5 , morphys
6 , pytestCheckHook
7 , pythonOlder
8 , six
9 , varint
12 buildPythonPackage rec {
13   pname = "py-multihash";
14   version = "2.0.1";
15   format = "setuptools";
17   disabled = pythonOlder "3.4";
19   src = fetchFromGitHub {
20     owner = "multiformats";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
24   };
26   postPatch = ''
27     substituteInPlace setup.py \
28       --replace "'pytest-runner', " ""
29   '';
31   propagatedBuildInputs = [
32     base58
33     morphys
34     six
35     varint
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   pythonImportsCheck = [
43     "multihash"
44   ];
46   meta = with lib; {
47     description = "Self describing hashes - for future proofing";
48     homepage = "https://github.com/multiformats/py-multihash";
49     license = licenses.mit;
50     maintainers = with maintainers; [ rakesh4g ];
51   };