2019-07-19 00:00:44 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, chardet
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, semver
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
|
|
|
, sphinx
|
|
|
|
, openapi-spec-validator
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prance";
|
2019-12-19 19:31:18 +00:00
|
|
|
version = "0.17.0";
|
2019-07-19 00:00:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:18 +00:00
|
|
|
sha256 = "a128d0d5f639a6a19eefedd787a6ce9603634c3908927b1215653e4a8375195f";
|
2019-07-19 00:00:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
chardet
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
semver
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
openapi-spec-validator
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "tests_require = dev_require," "tests_require = None,"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# many tests require network connection
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jfinkhaeuser/prance";
|
2019-07-19 00:00:44 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|