From 1a6c366b80e41219fddf67ddac1d7b360e6e02b5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 30 Oct 2022 21:57:33 +0100 Subject: [PATCH 1/2] python310Packages.editdistance: 0.6.0 -> 0.6.1 --- pkgs/development/python-modules/editdistance/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/editdistance/default.nix b/pkgs/development/python-modules/editdistance/default.nix index 41b20ca8969f..377c044e0c25 100644 --- a/pkgs/development/python-modules/editdistance/default.nix +++ b/pkgs/development/python-modules/editdistance/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "editdistance"; - version = "0.6.0"; + version = "0.6.1"; src = fetchFromGitHub { owner = "roy-ht"; repo = pname; rev = "v${version}"; - sha256 = "17xkndwdyf14nfxk25z1qnhkzm0yxw65fpj78c01haq241zfzjr5"; + sha256 = "sha256-c0TdH1nJAKrepatCSCTLaKsDv9NKruMQadCjclKGxBw="; }; nativeBuildInputs = [ cython ]; From d1e9d8fb2e693242dd76e186f7683c3682fd1b13 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 30 Oct 2022 22:00:28 +0100 Subject: [PATCH 2/2] python310Packages.editdistance: disable on older Python releases --- .../python-modules/editdistance/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/editdistance/default.nix b/pkgs/development/python-modules/editdistance/default.nix index 377c044e0c25..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.1"; + format = "setuptools"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "roy-ht"; repo = pname; rev = "v${version}"; - sha256 = "sha256-c0TdH1nJAKrepatCSCTLaKsDv9NKruMQadCjclKGxBw="; + 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)";