mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
34 lines
699 B
Nix
34 lines
699 B
Nix
{ lib
|
|
, 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 lib; {
|
|
homepage = "https://github.com/ikalnytskyi/sphinxcontrib-openapi";
|
|
description = "OpenAPI (fka Swagger) spec renderer for Sphinx";
|
|
license = licenses.bsd0;
|
|
};
|
|
|
|
}
|