pythonPackages.sphinxcontrib-openapi: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 10:25:04 -04:00
parent 6a8ee9b084
commit f2a6838ff1
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 30 additions and 12 deletions

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pyyaml
, jsonschema
, sphinxcontrib_httpdomain
}:
buildPythonPackage rec {
pname = "sphinxcontrib-openapi";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "0fyniq37nnmhrk4j7mzvg6vfcpb624hb9x70g6mccyw4xrnhadv6";
};
propagatedBuildInputs = [setuptools_scm pyyaml jsonschema 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;
};
}

View File

@ -3880,18 +3880,7 @@ in {
sphinxcontrib-blockdiag = callPackage ../development/python-modules/sphinxcontrib-blockdiag { };
sphinxcontrib-openapi = buildPythonPackage (rec {
name = "sphinxcontrib-openapi-0.3.0";
doCheck = false;
src = pkgs.fetchurl {
url = "mirror://pypi/s/sphinxcontrib-openapi/${name}.tar.gz";
sha256 = "0fyniq37nnmhrk4j7mzvg6vfcpb624hb9x70g6mccyw4xrnhadv6";
};
propagatedBuildInputs = with self; [setuptools_scm pyyaml jsonschema sphinxcontrib_httpdomain];
});
sphinxcontrib-openapi = callPackage ../development/python-modules/sphinxcontrib-openapi { };
sphinxcontrib_httpdomain = buildPythonPackage (rec {
name = "sphinxcontrib-httpdomain-1.5.0";