blob: b2379a82006eb1f11f79734d4697ac1e597f550a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "whatthepatch";
version = "1.0.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cscorley";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-1+OIs77Vyx56pgf7VSmi4UsPgkv8qZXFm8L2jK2CTMk=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}
|