Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / jsonschema-path / default.nix
blob1fad4ed64e10686b62f92d91a0b649c73c2279c5
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , poetry-core
6 , pythonRelaxDepsHook
7 , pathable
8 , pyyaml
9 , referencing
10 , pytestCheckHook
11 , responses
14 buildPythonPackage rec {
15   pname = "jsonschema-path";
16   version = "0.3.2";
18   disabled = pythonOlder "3.8";
20   pyproject = true;
22   src = fetchFromGitHub {
23     owner = "p1c2u";
24     repo = "jsonschema-path";
25     rev = version;
26     hash = "sha256-HC0yfACKFIQEQoIa8/FUKyV8YS8TQ0BY7i3n9xCdKz8=";
27   };
29   postPatch = ''
30     sed -i '/--cov/d' pyproject.toml
31   '';
33   nativeBuildInputs = [
34     poetry-core
35     pythonRelaxDepsHook
36   ];
38   pythonRelaxDeps = [
39     "referencing"
40   ];
42   propagatedBuildInputs = [
43     pathable
44     pyyaml
45     referencing
46   ];
48   pythonImportsCheck = [ "jsonschema_path" ];
50   nativeCheckInputs = [
51     pytestCheckHook
52     responses
53   ];
55   meta = {
56     description = "JSONSchema Spec with object-oriented paths";
57     homepage = "https://github.com/p1c2u/jsonschema-path";
58     license = lib.licenses.asl20;
59     maintainers = with lib.maintainers; [ dotlambda ];
60   };