-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcollections-extended.nix
More file actions
44 lines (37 loc) · 1.12 KB
/
collections-extended.nix
File metadata and controls
44 lines (37 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
lib,
buildPythonPackage,
fetchFromGitHub,
hypothesis,
poetry-core,
pytestCheckHook,
pythonOlder,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "collections-extended";
version = "2.0.2.post1";
format = "pyproject";
# https://github.com/mlenzen/collections-extended/issues/198
# My own running the test suggest Python 3.12 is still fine.
disabled = pythonOlder "3.6" || pythonAtLeast "3.13";
src = fetchFromGitHub {
owner = "mlenzen";
repo = pname;
# This version includes our hero JP's patches for Python 3.11.
rev = "8b93390636d58d28012b8e9d22334ee64ca37d73";
hash = "sha256-e7RCpNsqyS1d3q0E+uaE4UOEQziueYsRkKEvy3gCHt0=";
};
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
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 ];
};
}