Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, isodate 7, jsonschema 8, rfc3339-validator 9}: 10 11buildPythonPackage rec { 12 pname = "openapi-schema-validator"; 13 version = "0.4.4"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "p1c2u"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-2XTCdp9dfzhNKCpq71pt7yEZm9abiEmFHD/114W+jOQ="; 21 }; 22 23 postPatch = '' 24 sed -i "/--cov/d" pyproject.toml 25 ''; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 jsonschema 33 rfc3339-validator 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ "openapi_schema_validator" ]; 41 42 meta = with lib; { 43 description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0"; 44 homepage = "https://github.com/p1c2u/openapi-schema-validator"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ AluisioASG ]; 47 }; 48}