diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-01-09 01:14:44 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 01:14:44 -0300 |
commit | 868d133694b593d7c5924232d5b01a6c065dda38 (patch) | |
tree | a436cccf9b359b109498907124f6fddd1b2d5644 /pkgs | |
parent | 7b4af09b4bd53be4613f47fcce7676728cf79780 (diff) | |
parent | 6de86d47d39137e320b55bb90de19b96248fec39 (diff) |
Merge pull request #209085 from sumnerevans/thefuzz
pythonPackages.thefuzz: init at 0.19.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/thefuzz/default.nix | 50 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/thefuzz/default.nix b/pkgs/development/python-modules/thefuzz/default.nix new file mode 100644 index 000000000000..e521182a395a --- /dev/null +++ b/pkgs/development/python-modules/thefuzz/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, pytestCheckHook +, hypothesis +, python-Levenshtein +}: + +buildPythonPackage rec { + pname = "thefuzz"; + version = "0.19.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-b3Em2y8silQhKwXjp0DkX0KRxJfXXSB1Fyj2Nbt0qj0="; + }; + + propagatedBuildInputs = [ python-Levenshtein ]; + + # Skip linting + postPatch = '' + substituteInPlace test_thefuzz.py --replace "import pycodestyle" "" + ''; + + pythonImportsCheck = [ + "thefuzz" + ]; + + checkInputs = [ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f160eb973c05..57c1bdeb4971 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11209,6 +11209,8 @@ self: super: with self; { cudnnSupport = false; }; + thefuzz = callPackage ../development/python-modules/thefuzz { }; + thermobeacon-ble = callPackage ../development/python-modules/thermobeacon-ble { }; thermopro-ble = callPackage ../development/python-modules/thermopro-ble { }; |