nixpkgs/pkgs/development/python-modules/sphinxcontrib-openapi/default.nix
Jonathan Ringer 9d04b89380 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 15:47:10 -08:00

34 lines
709 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools_scm
, m2r
, pyyaml
, jsonschema
, sphinxcontrib_httpdomain
}:
buildPythonPackage rec {
pname = "sphinxcontrib-openapi";
version = "0.7.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1c1bd10d7653912c59a42f727c62cbb7b75f7905ddd9ccc477ebfd1bc69f0cf3";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ pyyaml jsonschema m2r sphinxcontrib_httpdomain ];
doCheck = false;
meta = with stdenv.lib; {
homepage = "https://github.com/ikalnytskyi/sphinxcontrib-openapi";
description = "OpenAPI (fka Swagger) spec renderer for Sphinx";
license = licenses.bsd0;
};
}