From 8da62bda3eaa5a2bcf43a3ec4ed9a825a9cad322 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 3 Mar 2023 15:33:26 +0000 Subject: [PATCH 1/5] python310Packages.py_stringmatching: 0.4.2 -> 0.4.3 --- pkgs/development/python-modules/py_stringmatching/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/py_stringmatching/default.nix b/pkgs/development/python-modules/py_stringmatching/default.nix index a6d4bc48e844..804e601457bf 100644 --- a/pkgs/development/python-modules/py_stringmatching/default.nix +++ b/pkgs/development/python-modules/py_stringmatching/default.nix @@ -8,11 +8,11 @@ buildPythonPackage rec { pname = "py_stringmatching"; - version = "0.4.2"; + version = "0.4.3"; src = fetchPypi { inherit pname version; - sha256 = "c87f62698fba1612a18f8f44bd57f0c4e70aac2d7ca6dfb6ed46dabd2194453c"; + sha256 = "sha256-khubsWOzEN80HDOCORMgT3sMqfajGfW0UUCDAL03je4="; }; nativeCheckInputs = [ nose ]; From a01aa125cce4b314836ac6af1e213574b4003eb5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Mar 2023 17:35:10 +0100 Subject: [PATCH 2/5] python310Packages.py_stringmatching: update meta --- .../development/python-modules/py_stringmatching/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/py_stringmatching/default.nix b/pkgs/development/python-modules/py_stringmatching/default.nix index 804e601457bf..c9384b9ac79c 100644 --- a/pkgs/development/python-modules/py_stringmatching/default.nix +++ b/pkgs/development/python-modules/py_stringmatching/default.nix @@ -20,8 +20,9 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy six ]; meta = with lib; { - description = "A Python string matching library including string tokenizers and string similarity measures"; - homepage = "https://sites.google.com/site/anhaidgroup/projects/magellan/py_stringmatching"; + description = "Python string matching library including string tokenizers and string similarity measures"; + homepage = "https://github.com/anhaidgroup/py_stringmatching"; + changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt"; license = licenses.bsd3; maintainers = with maintainers; [ ixxie ]; }; From df3053556ab8a1b3b4fa92351ccb2974d1ae2147 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Mar 2023 18:45:25 +0100 Subject: [PATCH 3/5] python310Packages.py_stringmatching: disable on older Python releases --- .../python-modules/py_stringmatching/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/py_stringmatching/default.nix b/pkgs/development/python-modules/py_stringmatching/default.nix index c9384b9ac79c..42f4b8eb9ab3 100644 --- a/pkgs/development/python-modules/py_stringmatching/default.nix +++ b/pkgs/development/python-modules/py_stringmatching/default.nix @@ -1,14 +1,18 @@ { lib , buildPythonPackage -, numpy -, six -, nose , fetchPypi +, nose +, numpy +, pythonOlder +, six }: buildPythonPackage rec { pname = "py_stringmatching"; version = "0.4.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; From 1fe9600d6fd22031ed5c576640ef0c257918eb93 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Mar 2023 18:47:59 +0100 Subject: [PATCH 4/5] python310Packages.py_stringmatching: add pythonImportsCheck --- pkgs/development/python-modules/py_stringmatching/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/py_stringmatching/default.nix b/pkgs/development/python-modules/py_stringmatching/default.nix index 42f4b8eb9ab3..9479fbe9c814 100644 --- a/pkgs/development/python-modules/py_stringmatching/default.nix +++ b/pkgs/development/python-modules/py_stringmatching/default.nix @@ -23,6 +23,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy six ]; + pythonImportsCheck = [ + "py_stringmatching" + ]; + meta = with lib; { description = "Python string matching library including string tokenizers and string similarity measures"; homepage = "https://github.com/anhaidgroup/py_stringmatching"; From 9bedd92dd9022a395f89aff29286bebc9fd94900 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Mar 2023 18:50:36 +0100 Subject: [PATCH 5/5] python310Packages.py_stringmatching: normalize pname --- .../python-modules/py_stringmatching/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/py_stringmatching/default.nix b/pkgs/development/python-modules/py_stringmatching/default.nix index 9479fbe9c814..8c49de1e5287 100644 --- a/pkgs/development/python-modules/py_stringmatching/default.nix +++ b/pkgs/development/python-modules/py_stringmatching/default.nix @@ -8,20 +8,26 @@ }: buildPythonPackage rec { - pname = "py_stringmatching"; + pname = "py-stringmatching"; version = "0.4.3"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; + pname = "py_stringmatching"; + inherit version; sha256 = "sha256-khubsWOzEN80HDOCORMgT3sMqfajGfW0UUCDAL03je4="; }; - nativeCheckInputs = [ nose ]; + propagatedBuildInputs = [ + numpy + six + ]; - propagatedBuildInputs = [ numpy six ]; + nativeCheckInputs = [ + nose + ]; pythonImportsCheck = [ "py_stringmatching"