pythonPackages.sphinxcontrib_plantuml: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 17:30:54 -04:00
parent b922753053
commit 44713571fc
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 29 additions and 19 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, sphinx
, plantuml
}:
buildPythonPackage rec {
pname = "sphinxcontrib-plantuml";
version = "0.7";
src = fetchPypi {
inherit pname version;
sha256 = "011yprqf41dcm1824zgk2w8vi9115286pmli6apwhlrsxc6b6cwv";
};
# No tests included.
doCheck = false;
propagatedBuildInputs = [ sphinx plantuml ];
meta = with stdenv.lib; {
description = "Provides a Sphinx domain for embedding UML diagram with PlantUML";
homepage = https://bitbucket.org/birkenfeld/sphinx-contrib;
license = with licenses; [ bsd2 ];
};
}

View File

@ -3888,25 +3888,7 @@ in {
sphinxcontrib_newsfeed = callPackage ../development/python-modules/sphinxcontrib_newsfeed { };
sphinxcontrib_plantuml = buildPythonPackage (rec {
name = "sphinxcontrib-plantuml-0.7";
src = pkgs.fetchurl {
url = "mirror://pypi/s/sphinxcontrib-plantuml/${name}.tar.gz";
sha256 = "011yprqf41dcm1824zgk2w8vi9115286pmli6apwhlrsxc6b6cwv";
};
# No tests included.
doCheck = false;
propagatedBuildInputs = with self; [sphinx plantuml];
meta = {
description = "Provides a Sphinx domain for embedding UML diagram with PlantUML";
homepage = https://bitbucket.org/birkenfeld/sphinx-contrib;
license = with licenses; [ bsd2 ];
};
});
sphinxcontrib_plantuml = callPackage ../development/python-modules/sphinxcontrib_plantuml { };
sphinxcontrib-spelling = buildPythonPackage (rec {
name = "${pname}-${version}";