blob: 310d7d1445193588142372a1eefb864d5acc6488 (
plain)
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
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "immutables";
version = "0.21";
pyproject = true;
src = fetchFromGitHub {
owner = "MagicStack";
repo = "immutables";
tag = "v${version}";
hash = "sha256-wZuCZEVXzycqA/h27RIe59e2QQALem8mfb3EdjwQr9w=";
};
postPatch = ''
rm tests/conftest.py
'';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# Version mismatch
"testMypyImmu"
];
disabledTestPaths = [
# avoid dependency on mypy
"tests/test_mypy.py"
];
pythonImportsCheck = [ "immutables" ];
meta = {
description = "Immutable mapping type";
homepage = "https://github.com/MagicStack/immutables";
changelog = "https://github.com/MagicStack/immutables/releases/tag/v${version}";
license = with lib.licenses; [ asl20 ];
};
}
|