evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / thefuzz / default.nix
blobd307d5912b035fe0a2f838d926bb34176e3104c4
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   pytestCheckHook,
7   hypothesis,
8   levenshtein,
9 }:
11 buildPythonPackage rec {
12   pname = "thefuzz";
13   version = "0.22.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-cTgDmn7PVA2jI3kthZLvmQKx1563jBR9TyBmTeefNoA=";
21   };
23   propagatedBuildInputs = [ levenshtein ];
25   # Skip linting
26   postPatch = ''
27     substituteInPlace test_thefuzz.py --replace "import pycodestyle" ""
28   '';
30   pythonImportsCheck = [ "thefuzz" ];
32   nativeCheckInputs = [
33     hypothesis
34     pytestCheckHook
35   ];
37   disabledTests = [
38     # Skip linting
39     "test_pep8_conformance"
40   ];
42   meta = with lib; {
43     description = "Fuzzy string matching for Python";
44     homepage = "https://github.com/seatgeek/thefuzz";
45     changelog = "https://github.com/seatgeek/thefuzz/blob/${version}/CHANGES.rst";
46     license = licenses.gpl2Only;
47     maintainers = with maintainers; [ sumnerevans ];
48   };