python313Packages.thefuzz: refactor
This commit is contained in:
@@ -6,12 +6,13 @@
|
||||
pytestCheckHook,
|
||||
hypothesis,
|
||||
levenshtein,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "thefuzz";
|
||||
version = "0.22.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@@ -20,20 +21,27 @@ buildPythonPackage rec {
|
||||
hash = "sha256-cTgDmn7PVA2jI3kthZLvmQKx1563jBR9TyBmTeefNoA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ levenshtein ];
|
||||
|
||||
# Skip linting
|
||||
postPatch = ''
|
||||
substituteInPlace test_thefuzz.py --replace "import pycodestyle" ""
|
||||
substituteInPlace test_thefuzz.py \
|
||||
--replace-fail "import pycodestyle" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "thefuzz" ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ levenshtein ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
speedup = [ ];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "thefuzz" ];
|
||||
|
||||
disabledTests = [
|
||||
# Skip linting
|
||||
"test_pep8_conformance"
|
||||
|
||||
Reference in New Issue
Block a user