1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "immutables";
11 version = "0.20";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "MagicStack";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 hash = "sha256-fEECtP6WQVzwSzBYX+CbhQtzkB/1WC3OYKXk2XY//xA=";
21 };
22
23 postPatch = ''
24 rm tests/conftest.py
25 '';
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 disabledTests = [
30 # Version mismatch
31 "testMypyImmu"
32 ];
33
34 disabledTestPaths = [
35 # avoid dependency on mypy
36 "tests/test_mypy.py"
37 ];
38
39 pythonImportsCheck = [ "immutables" ];
40
41 meta = with lib; {
42 description = "An immutable mapping type";
43 homepage = "https://github.com/MagicStack/immutables";
44 changelog = "https://github.com/MagicStack/immutables/releases/tag/v${version}";
45 license = with licenses; [ asl20 ];
46 maintainers = with maintainers; [ catern ];
47 };
48}