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