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
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonAtLeast
|
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";
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
# https://github.com/mlenzen/collections-extended/issues/198
|
|
|
|
disabled = pythonOlder "3.6" || pythonAtLeast "3.11";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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 ];
|
|
|
|
};
|
|
|
|
}
|