@@ -0,0 +1,38 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pythonOlder
5+, poetry-core
6+, pytestCheckHook
7+}:
8+buildPythonPackage rec {
9+ pname = "collections-extended";
10+ version = "2.0.0";
11+ format = "pyproject";
12+
13+ disabled = pythonOlder "3.6";
14+
15+ src = fetchFromGitHub {
16+ owner = "mlenzen";
17+ repo = pname;
18+ rev = "v${version}";
19+ sha256 = "sha256:1qcr1q49a134b122rpldjiim1fsl32gxs5fpj3232nyb05r68haz";
20+ };
21+
22+ nativeBuildInputs = [
23+ poetry-core
24+ ];
25+
26+ checkInputs = [
27+ pytestCheckHook
28+ ];
29+
30+ pythonImportsCheck = [ "collections_extended" ];
31+
32+ meta = with lib; {
33+ homepage = "https://github.com/mlenzen/collections-extended";
34+ description = "Extra Python Collections - bags (multisets), setlists (unique list / indexed set), RangeMap and IndexedDict";
35+ license = licenses.asl20;
36+ maintainers = with maintainers; [ exarkun ];
37+ };
38+}