nixpkgs-suyu/pkgs/development/python-modules/sortedcollections/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

35 lines
756 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
, pytestCheckHook
, sortedcontainers
}:
buildPythonPackage rec {
pname = "sortedcollections";
version = "2.1.0";
src = fetchFromGitHub {
owner = "grantjenks";
repo = "python-sortedcollections";
rev = "v${version}";
hash = "sha256-GkZO8afUAgDpDjIa3dhO6nxykqrljeKldunKMODSXfg=";
};
propagatedBuildInputs = [ sortedcontainers ];
nativeCheckInputs = [
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "sortedcollections" ];
meta = with lib; {
description = "Python Sorted Collections";
homepage = "http://www.grantjenks.com/docs/sortedcollections/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}