Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / jsonschema-spec / default.nix
blobc41d8b35cf0961b6884e8dfceec835d3fecda076
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pythonRelaxDepsHook
7 # build
8 , poetry-core
10 # propagates
11 , pathable
12 , pyyaml
13 , referencing
14 , requests
16 # tests
17 , pytestCheckHook
18 , responses
21 buildPythonPackage rec {
22   pname = "jsonschema-spec";
23   version = "0.2.4";
24   format = "pyproject";
26   disabled = pythonOlder "3.8";
28   src = fetchFromGitHub {
29     owner = "p1c2u";
30     repo = pname;
31     rev = "refs/tags/${version}";
32     hash = "sha256-1Flb3XQCGhrAYzTvriSVhHDb/Z/uvCyZdbav2u7f3sg=";
33   };
35   postPatch = ''
36     sed -i "/^--cov/d" pyproject.toml
38     substituteInPlace pyproject.toml \
39       --replace 'referencing = ">=0.28.0,<0.30.0"' 'referencing = ">=0.28.0"'
40   '';
42   nativeBuildInputs = [
43     poetry-core
44     pythonRelaxDepsHook
45   ];
47   pythonRelaxDeps = [
48     "referencing"
49   ];
51   propagatedBuildInputs = [
52     pathable
53     pyyaml
54     referencing
55     requests
56   ];
58   nativeCheckInputs = [
59     pytestCheckHook
60     responses
61   ];
63   passthru.skipBulkUpdate = true; # newer versions under the jsonschema-path name
65   meta = with lib; {
66     changelog = "https://github.com/p1c2u/jsonschema-spec/releases/tag/${version}";
67     description = "JSONSchema Spec with object-oriented paths";
68     homepage = "https://github.com/p1c2u/jsonschema-spec";
69     license = licenses.asl20;
70     maintainers = with maintainers; [ hexa ];
71   };