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