nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, isodate
7, jsonschema
8, pytest-flake8
9, pytest-cov
10, rfc3339-validator
11, six
12, strict-rfc3339
13}:
14
15buildPythonPackage rec {
16 pname = "openapi-schema-validator";
17 version = "0.2.3";
18 format = "pyproject";
19
20 src = fetchFromGitHub {
21 owner = "p1c2u";
22 repo = pname;
23 rev = version;
24 sha256 = "sha256-rgl2B55dnbpZszr+gWM0FgeXMKfrkDG7HeZBSw5Eles=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [ isodate jsonschema six strict-rfc3339 rfc3339-validator ];
32
33 checkInputs = [ pytestCheckHook pytest-cov pytest-flake8 ];
34 pythonImportsCheck = [ "openapi_schema_validator" ];
35
36 meta = with lib; {
37 description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0";
38 homepage = "https://github.com/p1c2u/openapi-schema-validator";
39 license = licenses.bsd3;
40 maintainers = with maintainers; [ AluisioASG ];
41 };
42}