From b7efc7cc2a33e67582bc0684ee8d65d3dcba934a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 4 Dec 2022 18:21:03 +0000 Subject: [PATCH 1/2] python310Packages.colorful: 0.5.4 -> 0.5.5 --- pkgs/development/python-modules/colorful/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/colorful/default.nix b/pkgs/development/python-modules/colorful/default.nix index 9ea380cd1d55..67e8bb7adc67 100644 --- a/pkgs/development/python-modules/colorful/default.nix +++ b/pkgs/development/python-modules/colorful/default.nix @@ -6,14 +6,14 @@ buildPythonPackage rec { pname = "colorful"; - version = "0.5.4"; + version = "0.5.5"; # No tests in the Pypi package. src = fetchFromGitHub { owner = "timofurrer"; repo = pname; - rev = "v${version}"; - sha256 = "1fcz5v8b318a3dsdha4c874jsf3wmcw3f25bv2csixclyzacli98"; + rev = "refs/tags/v${version}"; + sha256 = "sha256-fgxbj1WE9JcGt+oEcBguL0wQEWIn5toRTLWsvCFO3k8="; }; checkInputs = [ pytestCheckHook ]; From ba485938581209e1c037bdadb9b1bc4f2ccf0b6e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 4 Dec 2022 20:31:57 +0100 Subject: [PATCH 2/2] python310Packages.colorful: add changelog to meta --- .../python-modules/colorful/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/colorful/default.nix b/pkgs/development/python-modules/colorful/default.nix index 67e8bb7adc67..061d01114e04 100644 --- a/pkgs/development/python-modules/colorful/default.nix +++ b/pkgs/development/python-modules/colorful/default.nix @@ -2,25 +2,35 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "colorful"; version = "0.5.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; - # No tests in the Pypi package. src = fetchFromGitHub { owner = "timofurrer"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-fgxbj1WE9JcGt+oEcBguL0wQEWIn5toRTLWsvCFO3k8="; + hash = "sha256-fgxbj1WE9JcGt+oEcBguL0wQEWIn5toRTLWsvCFO3k8="; }; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "colorful" + ]; meta = with lib; { - description = "Terminal string styling done right, in Python."; + description = "Library for terminal string styling"; homepage = "https://github.com/timofurrer/colorful"; + changelog = "https://github.com/timofurrer/colorful/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ kalbasit ]; };