mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python310Packages.openapi-schema-validator: 0.3.4 -> 0.4.3
Diff: https://github.com/p1c2u/openapi-schema-validator/compare/refs/tags/0.3.4...0.4.3
This commit is contained in:
parent
9009dfb7b1
commit
be1d82d5ca
@ -5,31 +5,38 @@
|
|||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, isodate
|
, isodate
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, pytest-cov
|
|
||||||
, rfc3339-validator
|
, rfc3339-validator
|
||||||
, six
|
|
||||||
, strict-rfc3339
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "openapi-schema-validator";
|
pname = "openapi-schema-validator";
|
||||||
version = "0.3.4";
|
version = "0.4.3";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "p1c2u";
|
owner = "p1c2u";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-0nKAeqZCfzYFsV18BDsSws/54FmRoy7lQSHguI6m3Sc=";
|
hash = "sha256-rp0Oq5WWPpna5rHrq/lfRNxjK5/FLgPZ5uzVfDT/YiI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "/--cov/d" pyproject.toml
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ isodate jsonschema six strict-rfc3339 rfc3339-validator ];
|
propagatedBuildInputs = [
|
||||||
|
jsonschema
|
||||||
|
rfc3339-validator
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook pytest-cov ];
|
|
||||||
pythonImportsCheck = [ "openapi_schema_validator" ];
|
pythonImportsCheck = [ "openapi_schema_validator" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user