evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / immutables / default.nix
blob8ea8d2a89020123072297d832f9781f90a4ed7a4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7 }:
9 buildPythonPackage rec {
10   pname = "immutables";
11   version = "0.20";
12   format = "setuptools";
14   disabled = pythonOlder "3.8";
16   src = fetchFromGitHub {
17     owner = "MagicStack";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-fEECtP6WQVzwSzBYX+CbhQtzkB/1WC3OYKXk2XY//xA=";
21   };
23   postPatch = ''
24     rm tests/conftest.py
25   '';
27   nativeCheckInputs = [ pytestCheckHook ];
29   disabledTests = [
30     # Version mismatch
31     "testMypyImmu"
32   ];
34   disabledTestPaths = [
35     # avoid dependency on mypy
36     "tests/test_mypy.py"
37   ];
39   pythonImportsCheck = [ "immutables" ];
41   meta = with lib; {
42     description = "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   };