Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / overrides / default.nix
blob93dea37791a570664b29c940fc62aea3a2bdb2cb
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonAtLeast
5 , pythonOlder
6 , pytestCheckHook
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "overrides";
12   version = "7.7.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "mkorpela";
19     repo = "overrides";
20     rev = "refs/tags/${version}";
21     hash = "sha256-gQDw5/RpAFNYWFOuxIAArPkCOoBYWUnsDtv1FEFteHo=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   disabledTests = lib.optionals (pythonAtLeast "3.12") [
33     # KeyError: 'assertRaises'
34     "test_enforcing_when_incompatible"
35   ];
37   pythonImportsCheck = [
38     "overrides"
39   ];
41   meta = with lib; {
42     description = "Decorator to automatically detect mismatch when overriding a method";
43     homepage = "https://github.com/mkorpela/overrides";
44     changelog = "https://github.com/mkorpela/overrides/releases/tag/${version}";
45     license = licenses.asl20;
46     maintainers = with maintainers; [ fab ];
47   };