nav: init at 1.2.1 (#356071)
[NixPkgs.git] / pkgs / development / python-modules / py-multihash / default.nix
blob9ad80769e9544d91d55ac9f9dd1b730ad23f70a9
2   lib,
3   base58,
4   buildPythonPackage,
5   fetchFromGitHub,
6   morphys,
7   pytestCheckHook,
8   six,
9   varint,
12 buildPythonPackage rec {
13   pname = "py-multihash";
14   version = "2.0.1";
15   format = "setuptools";
17   src = fetchFromGitHub {
18     owner = "multiformats";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace "'pytest-runner', " ""
27   '';
29   propagatedBuildInputs = [
30     base58
31     morphys
32     six
33     varint
34   ];
36   nativeCheckInputs = [ pytestCheckHook ];
38   pythonImportsCheck = [ "multihash" ];
40   meta = with lib; {
41     description = "Self describing hashes - for future proofing";
42     homepage = "https://github.com/multiformats/py-multihash";
43     license = licenses.mit;
44     maintainers = with maintainers; [ rakesh4g ];
45   };