depot/third_party/nixpkgs/pkgs/development/python-modules/prance/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

57 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.20.2";
src = fetchPypi {
inherit pname version;
sha256 = "4ffcddae6218cf6753a02af36ca9fb1c92eec4689441789ee2e9963230882388";
};
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 ];
};
}