blob: b03615f57f59fdd9858bfac8dc97361d00044312 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "whatthepatch";
version = "1.0.7";
pyproject = true;
src = fetchFromGitHub {
owner = "cscorley";
repo = "whatthepatch";
tag = version;
hash = "sha256-0pkkwVo9yaFEZyitfpKMC8EVr8HgPLUkrGWmyYOdZNE=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "whatthepatch" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ nickcao ];
};
}
|