From d2f0ad5df4d9ee20945053295b94dacace1b9ba2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 7 May 2023 22:05:05 +0200 Subject: [PATCH] python310Packages.whatthepatch: add changelog to meta - disable on unsupported Python releases --- pkgs/development/python-modules/whatthepatch/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/whatthepatch/default.nix b/pkgs/development/python-modules/whatthepatch/default.nix index 5df97b785ea1..b2379a82006e 100644 --- a/pkgs/development/python-modules/whatthepatch/default.nix +++ b/pkgs/development/python-modules/whatthepatch/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , pytestCheckHook , setuptools +, pythonOlder }: buildPythonPackage rec { @@ -10,6 +11,8 @@ buildPythonPackage rec { version = "1.0.5"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "cscorley"; repo = pname; @@ -25,11 +28,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "whatthepatch" ]; + pythonImportsCheck = [ + "whatthepatch" + ]; meta = with lib; { description = "Python library for both parsing and applying patch files"; homepage = "https://github.com/cscorley/whatthepatch"; + changelog = "https://github.com/cscorley/whatthepatch/blob/${version}/HISTORY.md"; license = licenses.mit; maintainers = with maintainers; [ joelkoen ]; };