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