1{ lib 2, base58 3, buildPythonPackage 4, fetchFromGitHub 5, morphys 6, pytestCheckHook 7, pythonOlder 8, six 9, varint 10}: 11 12buildPythonPackage rec { 13 pname = "py-multihash"; 14 version = "2.0.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.4"; 18 19 src = fetchFromGitHub { 20 owner = "multiformats"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace "'pytest-runner', " "" 29 ''; 30 31 propagatedBuildInputs = [ 32 base58 33 morphys 34 six 35 varint 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "multihash" 44 ]; 45 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 }; 52}