python310Packages.pystemmer: Normalize attribute & pname
Clean up derivation by removing redundant fetcher and commented out preBuild hook.
This commit is contained in:
parent
5214e64a28
commit
5b8f20d115
4 changed files with 5 additions and 13 deletions
|
@ -9,15 +9,10 @@
|
|||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyStemmer";
|
||||
pname = "pystemmer";
|
||||
version = "2.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
src' = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-4hcbkbhrscap3d8J6Mhn5Ij4vWm94H0EEKNc3O4NhXw=";
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snowballstem";
|
||||
repo = "pystemmer";
|
||||
|
@ -52,10 +47,6 @@ buildPythonPackage rec {
|
|||
"-L${libstemmer}/lib"
|
||||
];
|
||||
|
||||
#preBuild = ''
|
||||
# cython src/Stemmer.pyx
|
||||
#'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"Stemmer"
|
||||
];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildPythonPackage, PyStemmer, fetchPypi }:
|
||||
{ lib, buildPythonPackage, pystemmer, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "snowballstemmer";
|
||||
|
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
|||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ PyStemmer ];
|
||||
propagatedBuildInputs = [ pystemmer ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "16 stemmer algorithms (15 + Poerter English stemmer) generated from Snowball algorithms";
|
||||
|
|
|
@ -199,6 +199,7 @@ mapAliases ({
|
|||
PyRSS2Gen = pyrss2gen; # added 2023-02-19
|
||||
pysmart-smartx = pysmart; # added 2021-10-22
|
||||
pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29
|
||||
PyStemmer = pystemmer; # added 2023-02-19
|
||||
pytest_6 = pytest; # added 2022-02-10
|
||||
pytestcov = pytest-cov; # added 2021-01-04
|
||||
pytest-pep8 = pytestpep8; # added 2021-01-04
|
||||
|
|
|
@ -8949,7 +8949,7 @@ self: super: with self; {
|
|||
inherit (pkgs) systemd;
|
||||
};
|
||||
|
||||
PyStemmer = callPackage ../development/python-modules/pystemmer { };
|
||||
pystemmer = callPackage ../development/python-modules/pystemmer { };
|
||||
|
||||
pystray = callPackage ../development/python-modules/pystray { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue