From efdcde92730d3f0c7ad2a6e8151438485c446c4b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 1 Dec 2022 18:47:12 +0000 Subject: [PATCH 1/2] python310Packages.pyphen: 0.13.0 -> 0.13.2 --- pkgs/development/python-modules/pyphen/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyphen/default.nix b/pkgs/development/python-modules/pyphen/default.nix index 6822886bda4e..c231c9964cf1 100644 --- a/pkgs/development/python-modules/pyphen/default.nix +++ b/pkgs/development/python-modules/pyphen/default.nix @@ -7,12 +7,12 @@ buildPythonPackage rec { pname = "pyphen"; - version = "0.13.0"; + version = "0.13.2"; format = "pyproject"; src = fetchPypi { inherit pname version; - sha256 = "sha256-Boc86//WWo/KfCDA49wDJlXH7o3g9VIgXK07V0JlwpM="; + sha256 = "sha256-hH9XoEOlhAjyRnCuAYT/bt+1/VcxdDIIIowCjdxRRDg="; }; nativeBuildInputs = [ From da4612004384689017f4df09f1705ae94e494a3f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 2 Dec 2022 08:48:03 +0100 Subject: [PATCH 2/2] python310Packages.pyphen: add changelog to meta - add pythonImportsCheck - disable on older Python releases --- pkgs/development/python-modules/pyphen/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyphen/default.nix b/pkgs/development/python-modules/pyphen/default.nix index c231c9964cf1..65b88d5d611b 100644 --- a/pkgs/development/python-modules/pyphen/default.nix +++ b/pkgs/development/python-modules/pyphen/default.nix @@ -3,6 +3,7 @@ , fetchPypi , flit , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { @@ -10,9 +11,11 @@ buildPythonPackage rec { version = "0.13.2"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; - sha256 = "sha256-hH9XoEOlhAjyRnCuAYT/bt+1/VcxdDIIIowCjdxRRDg="; + hash = "sha256-hH9XoEOlhAjyRnCuAYT/bt+1/VcxdDIIIowCjdxRRDg="; }; nativeBuildInputs = [ @@ -27,9 +30,14 @@ buildPythonPackage rec { pytestCheckHook ]; + pythonImportsCheck = [ + "ptpython" + ]; + meta = with lib; { - description = "Pure Python module to hyphenate text"; + description = "Module to hyphenate text"; homepage = "https://github.com/Kozea/Pyphen"; + changelog = "https://github.com/Kozea/Pyphen/releases/tag/${version}"; license = with licenses; [gpl2 lgpl21 mpl20]; maintainers = with maintainers; [ rvl ]; };