python310Packages.whatthepatch: add changelog to meta

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-05-07 22:05:05 +02:00 committed by GitHub
parent 14c53f9db3
commit d2f0ad5df4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];
};