1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "whatthepatch";
9 version = "1.0.2";
10
11 src = fetchFromGitHub {
12 owner = "cscorley";
13 repo = pname;
14 rev = version;
15 hash = "sha256-0l/Ebq7Js9sKFJ/RzkQ1aWEDCxt+COVd2qVnLSWwFx0=";
16 };
17
18 checkInputs = [
19 pytestCheckHook
20 ];
21
22 pythonImportsCheck = [ "whatthepatch" ];
23
24 meta = with lib; {
25 description = "Python library for both parsing and applying patch files";
26 homepage = "https://github.com/cscorley/whatthepatch";
27 license = licenses.mit;
28 maintainers = with maintainers; [ jyooru ];
29 };
30}