1{ lib
2, buildPythonPackage
3, fetchPypi
4, chardet
5, pyyaml
6, requests
7, six
8, semver
9, pytest
10, pytestcov
11, pytestrunner
12, sphinx
13, openapi-spec-validator
14}:
15
16buildPythonPackage rec {
17 pname = "prance";
18 version = "0.19.0";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "0ffpfny3z8v3g0drirm27qafafbbvbc4h5k8v7yiwirnh0vn9v46";
23 };
24
25 buildInputs = [
26 pytestrunner
27 ];
28
29 propagatedBuildInputs = [
30 chardet
31 pyyaml
32 requests
33 six
34 semver
35 ];
36
37 checkInputs = [
38 pytest
39 pytestcov
40 openapi-spec-validator
41 ];
42
43 postPatch = ''
44 substituteInPlace setup.py \
45 --replace "tests_require = dev_require," "tests_require = None,"
46 '';
47
48 # many tests require network connection
49 doCheck = false;
50
51 meta = with lib; {
52 description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
53 homepage = "https://github.com/jfinkhaeuser/prance";
54 license = licenses.mit;
55 maintainers = [ maintainers.costrouc ];
56 };
57}