1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pytestCheckHook 6, hypothesis 7, levenshtein 8}: 9 10buildPythonPackage rec { 11 pname = "thefuzz"; 12 version = "0.20.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-ol5JeGscRgPH/G4taea8ZgmCopGWmLU2/4NU4GMcxA0="; 20 }; 21 22 propagatedBuildInputs = [ levenshtein ]; 23 24 # Skip linting 25 postPatch = '' 26 substituteInPlace test_thefuzz.py --replace "import pycodestyle" "" 27 ''; 28 29 pythonImportsCheck = [ 30 "thefuzz" 31 ]; 32 33 nativeCheckInputs = [ 34 hypothesis 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 # Skip linting 40 "test_pep8_conformance" 41 ]; 42 43 meta = with lib; { 44 description = "Fuzzy string matching for Python"; 45 homepage = "https://github.com/seatgeek/thefuzz"; 46 changelog = "https://github.com/seatgeek/thefuzz/blob/${version}/CHANGES.rst"; 47 license = licenses.gpl2Only; 48 maintainers = with maintainers; [ sumnerevans ]; 49 }; 50}