diff --git a/pkgs/development/python-modules/editdistance/default.nix b/pkgs/development/python-modules/editdistance/default.nix index 41b20ca8969f..41d4a5003424 100644 --- a/pkgs/development/python-modules/editdistance/default.nix +++ b/pkgs/development/python-modules/editdistance/default.nix @@ -3,29 +3,38 @@ , fetchFromGitHub , pytestCheckHook , cython +, pythonOlder }: buildPythonPackage rec { pname = "editdistance"; - version = "0.6.0"; + version = "0.6.1"; + format = "setuptools"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "roy-ht"; repo = pname; rev = "v${version}"; - sha256 = "17xkndwdyf14nfxk25z1qnhkzm0yxw65fpj78c01haq241zfzjr5"; + hash = "sha256-c0TdH1nJAKrepatCSCTLaKsDv9NKruMQadCjclKGxBw="; }; - nativeBuildInputs = [ cython ]; + nativeBuildInputs = [ + cython + ]; preBuild = '' cythonize --inplace editdistance/bycython.pyx ''; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "editdistance" ]; + pythonImportsCheck = [ + "editdistance" + ]; meta = with lib; { description = "Python implementation of the edit distance (Levenshtein distance)";