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

This commit is contained in:
Chris Ostrouchov 2018-10-27 17:32:44 -04:00
parent 44713571fc
commit 2caa59c957
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 31 additions and 18 deletions

View file

@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, sphinx
, pyenchant
, pbr
}:
buildPythonPackage rec {
pname = "sphinxcontrib-spelling";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1f0fymrk4kvhqs0vj9gay4lhacxkfrlrpj4gvg0p4wjdczplxd3z";
};
propagatedBuildInputs = [ sphinx pyenchant pbr ];
# No tests included
doCheck = false;
meta = with stdenv.lib; {
description = "Sphinx spelling extension";
homepage = https://bitbucket.org/dhellmann/sphinxcontrib-spelling;
maintainers = with maintainers; [ nand0p ];
license = licenses.bsd2;
};
}

View file

@ -3890,24 +3890,7 @@ in {
sphinxcontrib_plantuml = callPackage ../development/python-modules/sphinxcontrib_plantuml { };
sphinxcontrib-spelling = buildPythonPackage (rec {
name = "${pname}-${version}";
pname = "sphinxcontrib-spelling";
version = "2.2.0";
src = pkgs.fetchurl {
url = "mirror://pypi/s/${pname}/${name}.tar.gz";
sha256 = "1f0fymrk4kvhqs0vj9gay4lhacxkfrlrpj4gvg0p4wjdczplxd3z";
};
propagatedBuildInputs = with self; [ sphinx pyenchant pbr ];
# No tests included
doCheck = false;
meta = {
description = "Sphinx spelling extension";
homepage = https://bitbucket.org/dhellmann/sphinxcontrib-spelling;
maintainers = with maintainers; [ nand0p ];
license = licenses.bsd2;
};
});
sphinxcontrib-spelling = callPackage ../development/python-modules/sphinxcontrib-spelling { };
sphinx-jinja = callPackage ../development/python-modules/sphinx-jinja { };