2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2023-01-20 10:41:00 +00:00
|
|
|
, setuptools
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whatthepatch";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "1.0.4";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cscorley";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-pejph0WyhryS2injlFElFozIDl6zJeiENh6fqh6982s=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "whatthepatch" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for both parsing and applying patch files";
|
|
|
|
homepage = "https://github.com/cscorley/whatthepatch";
|
|
|
|
license = licenses.mit;
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ joelkoen ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|