python310Packages.pystemmer: Normalize attribute & pname

Clean up derivation by removing redundant fetcher and commented out
preBuild hook.
This commit is contained in:
Martin Weinelt 2023-02-19 17:55:25 +00:00
parent 5214e64a28
commit 5b8f20d115
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
4 changed files with 5 additions and 13 deletions

View file

@ -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"
];

View file

@ -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";

View file

@ -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

View file

@ -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 { };