My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/collections-extended/default.nix

43 lines
873 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, hypothesis
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "collections-extended";
version = "2.0.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mlenzen";
repo = pname;
rev = "v${version}";
hash = "sha256-cK13+CQUELKSiLpG747+C+RB5b6luu0mWLLXTT+uGH4=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [
"collections_extended"
];
meta = with lib; {
description = "Extra Python Collections - bags (multisets), setlists (unique list/indexed set), RangeMap and IndexedDict";
homepage = "https://github.com/mlenzen/collections-extended";
license = licenses.asl20;
maintainers = with maintainers; [ exarkun ];
};
}