diff --git a/pkgs/development/python-modules/fuzzywuzzy/default.nix b/pkgs/development/python-modules/fuzzywuzzy/default.nix index bd28e2afa990..12708a956184 100644 --- a/pkgs/development/python-modules/fuzzywuzzy/default.nix +++ b/pkgs/development/python-modules/fuzzywuzzy/default.nix @@ -2,33 +2,42 @@ lib, buildPythonPackage, fetchPypi, + pytestCheckHook, + setuptools, levenshtein, pycodestyle, - hypothesis, - pytest, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "fuzzywuzzy"; version = "0.18.0"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) version; + pname = "fuzzywuzzy"; sha256 = "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5"; }; - propagatedBuildInputs = [ levenshtein ]; + build-system = [ setuptools ]; + + dependencies = [ levenshtein ]; + nativeCheckInputs = [ + pytestCheckHook pycodestyle - hypothesis - pytest + ]; + + pythonImportsCheck = [ + "fuzzywuzzy" ]; meta = { description = "Fuzzy string matching for Python"; homepage = "https://github.com/seatgeek/fuzzywuzzy"; - license = lib.licenses.gpl2; + license = lib.licenses.gpl2Only; maintainers = with lib.maintainers; [ erikarvstedt ]; }; -} +})