nixpkgs/pkgs/development/python-modules/prance/default.nix
2020-06-11 10:00:18 +02:00

58 lines
981 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, chardet
, pyyaml
, requests
, six
, semver
, pytest
, pytestcov
, pytestrunner
, sphinx
, openapi-spec-validator
}:
buildPythonPackage rec {
pname = "prance";
version = "0.18.3";
src = fetchPypi {
inherit pname version;
sha256 = "4600ec749ade4f10d1cc8b07cd7a372f02985efd66100e287e67ccb1d48b5fc5";
};
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";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}