pythonPackages.sphinxcontrib_httpdomain: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 10:27:21 -04:00
parent f2a6838ff1
commit 56dfe057d2
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 29 additions and 22 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, sphinx
}:
buildPythonPackage rec {
pname = "sphinxcontrib-httpdomain";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "0srg8lwf4m1hyhz942fcdfxh689xphndngiidb575qmfbi89gc7a";
};
propagatedBuildInputs = [ sphinx ];
# Check is disabled due to this issue:
# https://bitbucket.org/pypa/setuptools/issue/137/typeerror-unorderable-types-str-nonetype
doCheck = false;
meta = with stdenv.lib; {
description = "Provides a Sphinx domain for describing RESTful HTTP APIs";
homepage = https://bitbucket.org/birkenfeld/sphinx-contrib;
license = licenses.bsd0;
};
}

View File

@ -3882,28 +3882,7 @@ in {
sphinxcontrib-openapi = callPackage ../development/python-modules/sphinxcontrib-openapi { };
sphinxcontrib_httpdomain = buildPythonPackage (rec {
name = "sphinxcontrib-httpdomain-1.5.0";
# Check is disabled due to this issue:
# https://bitbucket.org/pypa/setuptools/issue/137/typeerror-unorderable-types-str-nonetype
doCheck = false;
src = pkgs.fetchurl {
url = "mirror://pypi/s/sphinxcontrib-httpdomain/${name}.tar.gz";
sha256 = "0srg8lwf4m1hyhz942fcdfxh689xphndngiidb575qmfbi89gc7a";
};
propagatedBuildInputs = with self; [sphinx];
meta = {
description = "Provides a Sphinx domain for describing RESTful HTTP APIs";
homepage = https://bitbucket.org/birkenfeld/sphinx-contrib;
license = "BSD";
};
});
sphinxcontrib_httpdomain = callPackage ../development/python-modules/sphinxcontrib_httpdomain { };
sphinx-navtree = callPackage ../development/python-modules/sphinx-navtree {};