depot/third_party/nixpkgs/pkgs/development/python-modules/py-multihash/default.nix
Default email 6ae7ad3cc5 Project import generated by Copybara.
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
2020-11-19 01:13:47 +01:00

54 lines
962 B
Nix

{ base58
, buildPythonPackage
, fetchFromGitHub
, isPy27
, lib
, morphys
, pytest
, pytestcov
, pytestrunner
, six
, variants
, varint
}:
buildPythonPackage rec {
pname = "py-multihash";
version = "1.0.0";
src = fetchFromGitHub {
owner = "multiformats";
repo = pname;
rev = "v${version}";
sha256 = "07qglrbgcb8sr9msqw2v7dqj9s4rs6nyvhdnx02i5w6xx5ibzi3z";
};
nativeBuildInputs = [
pytestrunner
];
propagatedBuildInputs = [
base58
morphys
six
variants
varint
];
checkInputs = [
pytest
pytestcov
];
pythonImportsCheck = [ "multihash" ];
disabled = isPy27;
meta = with lib; {
description = "Self describing hashes - for future proofing";
homepage = "https://github.com/multiformats/py-multihash";
license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ];
broken = true; # no longer compatible with base58, no updates in 5 years. Added 2020-11-05
};
}