1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/prance/default.nix

58 lines
981 B
Nix
Raw Normal View History

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";
homepage = "https://github.com/jfinkhaeuser/prance";
2019-07-19 00:00:44 +01:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}