python.pkgs.snowballstemmer: move out of python-packages.nix

This commit is contained in:
Jörg Thalheim 2018-07-23 10:39:18 +01:00 committed by Frederik Rietdijk
parent e9f05ffa9b
commit c4b99ee9cc
2 changed files with 24 additions and 20 deletions

View File

@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, PyStemmer, fetchPypi }:
buildPythonPackage rec {
pname = "snowballstemmer";
version = "1.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "919f26a68b2c17a7634da993d91339e288964f93c274f1343e3bbbe2096e1128";
};
# No tests included
doCheck = false;
propagatedBuildInputs = [ PyStemmer ];
meta = with stdenv.lib; {
description = "16 stemmer algorithms (15 + Poerter English stemmer) generated from Snowball algorithms";
homepage = http://sigal.saimon.org/en/latest/index.html;
license = licenses.bsd3;
platforms = platforms.unix;
};
}

View File

@ -12573,26 +12573,7 @@ in {
};
};
snowballstemmer = buildPythonPackage rec {
name = "snowballstemmer-1.2.1";
src = pkgs.fetchurl {
url = "mirror://pypi/s/snowballstemmer/${name}.tar.gz";
sha256 = "919f26a68b2c17a7634da993d91339e288964f93c274f1343e3bbbe2096e1128";
};
# No tests included
doCheck = false;
propagatedBuildInputs = with self; [ PyStemmer ];
meta = {
description = "16 stemmer algorithms (15 + Poerter English stemmer) generated from Snowball algorithms";
homepage = http://sigal.saimon.org/en/latest/index.html;
license = licenses.bsd3;
platforms = platforms.unix;
};
};
snowballstemmer = callPackage ../development/python-modules/snowballstemmer { };
spake2 = callPackage ../development/python-modules/spake2 { };