1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, mypy 7, typing-extensions 8}: 9 10buildPythonPackage rec { 11 pname = "immutables"; 12 version = "0.16"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "MagicStack"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "1f6nlpvrs41cjrnikx48qd0rlf7d89h6dzlr5zcndzsim7fgsmgz"; 20 }; 21 22 propagatedBuildInputs = [ 23 typing-extensions 24 ]; 25 26 checkInputs = [ 27 mypy 28 pytestCheckHook 29 ]; 30 31 disabledTests = [ 32 # Version mismatch 33 "testMypyImmu" 34 ]; 35 36 pythonImportsCheck = [ "immutables" ]; 37 38 meta = with lib; { 39 description = "An immutable mapping type for Python"; 40 homepage = "https://github.com/MagicStack/immutables"; 41 license = with licenses; [ asl20 ]; 42 maintainers = with maintainers; [ catern ]; 43 }; 44}