-
-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44004 from Mic92/python37-fixes
python37.pkgs.{pycodestyle,pyflakes,flake8,pystemmer}
- Loading branch information
Showing
3 changed files
with
53 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ stdenv, python, fetchPypi, buildPythonPackage, cython }: | ||
|
||
buildPythonPackage rec { | ||
pname = "PyStemmer"; | ||
version = "1.3.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "d1ac14eb64978c1697fcfba76e3ac7ebe24357c9428e775390f634648947cb91"; | ||
}; | ||
|
||
nativeBuildInputs = [ cython ]; | ||
|
||
preBuild = '' | ||
cython src/Stemmer.pyx | ||
''; | ||
|
||
checkPhase = '' | ||
${python.interpreter} runtests.py | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Snowball stemming algorithms, for information retrieval"; | ||
homepage = http://snowball.tartarus.org/; | ||
license = licenses.mit; | ||
platforms = platforms.unix; | ||
}; | ||
} |
23 changes: 23 additions & 0 deletions
23
pkgs/development/python-modules/snowballstemmer/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters