2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-27 15:25:04 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
python3Packages.sphinxcontrib-openapi: disable py2
```
builder for '/nix/store/jz41wvwvkc6q55972ysdajm6k3vnv6r8-python2.7-sphinxcontrib-openapi-0.7.0.drv' failed with exit code 1; last 10 log lines:
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
Traceback (most recent call last):
File "nix_run_setup", line 8, in <module>
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
File "setup.py", line 10, in <module>
with open(os.path.join(here, "README.rst"), "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
```
2020-11-05 23:11:24 +00:00
|
|
|
, isPy27
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2020-08-29 19:39:43 +01:00
|
|
|
, m2r
|
2018-10-27 15:25:04 +01:00
|
|
|
, pyyaml
|
|
|
|
, jsonschema
|
|
|
|
, sphinxcontrib_httpdomain
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxcontrib-openapi";
|
2020-06-06 07:47:32 +01:00
|
|
|
version = "0.7.0";
|
python3Packages.sphinxcontrib-openapi: disable py2
```
builder for '/nix/store/jz41wvwvkc6q55972ysdajm6k3vnv6r8-python2.7-sphinxcontrib-openapi-0.7.0.drv' failed with exit code 1; last 10 log lines:
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
Traceback (most recent call last):
File "nix_run_setup", line 8, in <module>
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
File "setup.py", line 10, in <module>
with open(os.path.join(here, "README.rst"), "r", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
```
2020-11-05 23:11:24 +00:00
|
|
|
disabled = isPy27;
|
2018-10-27 15:25:04 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:32 +01:00
|
|
|
sha256 = "1c1bd10d7653912c59a42f727c62cbb7b75f7905ddd9ccc477ebfd1bc69f0cf3";
|
2018-10-27 15:25:04 +01:00
|
|
|
};
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-08-29 19:39:43 +01:00
|
|
|
propagatedBuildInputs = [ pyyaml jsonschema m2r sphinxcontrib_httpdomain ];
|
2018-10-27 15:25:04 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-25 16:54:16 +00:00
|
|
|
homepage = "https://github.com/ikalnytskyi/sphinxcontrib-openapi";
|
2018-10-27 15:25:04 +01:00
|
|
|
description = "OpenAPI (fka Swagger) spec renderer for Sphinx";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|