python3Packages.fuzzywuzzy: migrate to pyproject, enable __structuredAttrs, use finalAttrs, enable tests (#535254)
This commit is contained in:
@@ -2,33 +2,42 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
levenshtein,
|
||||
pycodestyle,
|
||||
hypothesis,
|
||||
pytest,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "fuzzywuzzy";
|
||||
version = "0.18.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) version;
|
||||
pname = "fuzzywuzzy";
|
||||
sha256 = "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ levenshtein ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ levenshtein ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pycodestyle
|
||||
hypothesis
|
||||
pytest
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"fuzzywuzzy"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Fuzzy string matching for Python";
|
||||
homepage = "https://github.com/seatgeek/fuzzywuzzy";
|
||||
license = lib.licenses.gpl2;
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ erikarvstedt ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user