From e21280234bac95ddd6412e987133c01cccfb63e9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 19 Nov 2021 22:25:01 +0100 Subject: [PATCH 1/2] python3Packages.ukkonen: init at 1.0.1 --- .../python-modules/ukkonen/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/ukkonen/default.nix diff --git a/pkgs/development/python-modules/ukkonen/default.nix b/pkgs/development/python-modules/ukkonen/default.nix new file mode 100644 index 000000000000..dfdcf3515220 --- /dev/null +++ b/pkgs/development/python-modules/ukkonen/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, cffi +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "ukkonen"; + version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "asottile"; + repo = pname; + rev = "v${version}"; + sha256 = "jG6VP/P5sadrdrmneH36/ExSld9blyMAAG963QS9+p0="; + }; + + nativeBuildInputs = [ + cffi + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "ukkonen" + ]; + + meta = with lib; { + description = "Python implementation of bounded Levenshtein distance (Ukkonen)"; + homepage = "https://github.com/asottile/ukkonen"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87b06b9eb148..9e95a5b33067 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9582,6 +9582,8 @@ in { ujson = callPackage ../development/python-modules/ujson { }; + ukkonen = callPackage ../development/python-modules/ukkonen { }; + ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { }; umalqurra = callPackage ../development/python-modules/umalqurra { }; From ef4ab06ba5b0c2faffdd5cde41c15c6eb704b186 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 19 Nov 2021 22:26:00 +0100 Subject: [PATCH 2/2] python3Packages.identify: 2.3.7 -> 2.4.0 --- pkgs/development/python-modules/identify/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/identify/default.nix b/pkgs/development/python-modules/identify/default.nix index 37e5f5bcb8a5..fed8ddd419c0 100644 --- a/pkgs/development/python-modules/identify/default.nix +++ b/pkgs/development/python-modules/identify/default.nix @@ -1,14 +1,15 @@ { lib , buildPythonPackage +, editdistance-s , fetchFromGitHub , pytestCheckHook -, editdistance-s , pythonOlder +, ukkonen }: buildPythonPackage rec { pname = "identify"; - version = "2.3.7"; + version = "2.4.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,12 +18,13 @@ buildPythonPackage rec { owner = "pre-commit"; repo = pname; rev = "v${version}"; - sha256 = "sha256-L71Zi0SWFh7K4BRwF57prdrIdxLp8Igs0k/gc6k1+Mo="; + sha256 = "sha256-0J3P3RawafVAfOUhK9qSz5K8y0goMqTjMh5PL60sqME="; }; checkInputs = [ editdistance-s pytestCheckHook + ukkonen ]; pythonImportsCheck = [