python3Packages.openapi-spec-validator: update build
This commit is contained in:
parent
549773d135
commit
c03cd2675f
|
@ -1,17 +1,23 @@
|
|||
{ lib, buildPythonPackage, isPy27, fetchPypi
|
||||
, jsonschema, openapi-schema-validator, pyyaml, six, pathlib
|
||||
, mock, pytest, pytest-cov, pytest-flake8, tox, setuptools }:
|
||||
, mock, pytest, pytest-cov, pytest-flake8, tox, setuptools
|
||||
, poetry-core
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openapi-spec-validator";
|
||||
version = "0.4.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-l/JYhQr8l7BI98JlOFXg+I+masEDwr5Qd8eWCsoq1Jo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ jsonschema openapi-schema-validator pyyaml six setuptools ]
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [ jsonschema openapi-schema-validator pyyaml six setuptools requests ]
|
||||
++ (lib.optionals (isPy27) [ pathlib ]);
|
||||
|
||||
checkInputs = [ mock pytest pytest-cov pytest-flake8 tox ];
|
||||
|
|
Loading…
Reference in a new issue