depot/third_party/nixpkgs/pkgs/development/python-modules/thefuzz/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
996 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
pytestCheckHook,
hypothesis,
levenshtein,
}:
buildPythonPackage rec {
pname = "thefuzz";
version = "0.22.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-cTgDmn7PVA2jI3kthZLvmQKx1563jBR9TyBmTeefNoA=";
};
propagatedBuildInputs = [ levenshtein ];
# Skip linting
postPatch = ''
substituteInPlace test_thefuzz.py --replace "import pycodestyle" ""
'';
pythonImportsCheck = [ "thefuzz" ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
disabledTests = [
# Skip linting
"test_pep8_conformance"
];
meta = with lib; {
description = "Fuzzy string matching for Python";
homepage = "https://github.com/seatgeek/thefuzz";
changelog = "https://github.com/seatgeek/thefuzz/blob/${version}/CHANGES.rst";
license = licenses.gpl2Only;
maintainers = with maintainers; [ sumnerevans ];
};
}