1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, poetry-core
6, jsonschema
7, pathable
8, pyyaml
9, typing-extensions
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "jsonschema-spec";
15 version = "0.1.4";
16 format = "pyproject";
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "p1c2u";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-kLCV9WPWGrVgpbueafMVqtGmj3ifrBzTChE2kyxpyZk=";
24 };
25
26 postPatch = ''
27 sed -i "/--cov/d" pyproject.toml
28 '';
29
30 nativeBuildInputs = [
31 poetry-core
32 ];
33
34 propagatedBuildInputs = [
35 jsonschema
36 pathable
37 pyyaml
38 typing-extensions
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 ];
44
45 meta = with lib; {
46 changelog = "https://github.com/p1c2u/jsonschema-spec/releases/tag/${version}";
47 description = "JSONSchema Spec with object-oriented paths";
48 homepage = "https://github.com/p1c2u/jsonschema-spec";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ hexa ];
51 };
52}