blob: 19b3e9cc3e74461021a72a800bed8bbc34095e28 (
plain)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, isodate
, jsonschema
, rfc3339-validator
}:
buildPythonPackage rec {
pname = "openapi-schema-validator";
version = "0.4.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "p1c2u";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-2XTCdp9dfzhNKCpq71pt7yEZm9abiEmFHD/114W+jOQ=";
};
postPatch = ''
sed -i "/--cov/d" pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
jsonschema
rfc3339-validator
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "openapi_schema_validator" ];
meta = with lib; {
description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0";
homepage = "https://github.com/p1c2u/openapi-schema-validator";
license = licenses.bsd3;
maintainers = with maintainers; [ AluisioASG ];
};
}
|