blob: ff15b24f600deba5eba6baf86bab18916bdadcf1 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "ghcherry";
version = "1.6.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "PerchunPak";
repo = "ghcherry";
tag = "v${finalAttrs.version}";
hash = "sha256-yUsYf0v5IZh4yxkG+nu8cG4L/WcJTFDefc//l4v36sY=";
};
build-system = with python3Packages; [
hatchling
uv-dynamic-versioning
];
dependencies = with python3Packages; [
cyclopts
httpx
];
# upstream has strict dependency pins, but it doesn't break with slightly
# newer/older versions
# (c) upstream maintainer
pythonRelaxDeps = true;
nativeCheckInputs = with python3Packages; [
faker
pytest-asyncio
pytest-cov-stub
pytest-httpx
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "ghcherry" ];
meta = {
description = "Cherry-pick commits across GitHub repositories using only the GitHub API";
homepage = "https://github.com/PerchunPak/ghcherry";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.PerchunPak ];
mainProgram = "ghcherry";
};
})
|