blob: 90ac29e9b34587815e322d61276e0cab70a14823 (
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
43
44
45
46
47
48
49
50
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "gitlike-commands";
version = "0.2.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "unixorn";
repo = "gitlike-commands";
rev = "refs/tags/v${version}";
hash = "sha256-VjweN4gigzCNvg6TccZx2Xw1p7SusKplxUTZjItTQc0=";
};
patches = [
# Replace distutils, https://github.com/unixorn/gitlike-commands/pull/8
(fetchpatch {
name = "replace-distutils.patch";
url = "https://github.com/unixorn/gitlike-commands/commit/8a97206aff50a25ac6860032aa03925899c3d0aa.patch";
hash = "sha256-a2utKbf9vrQlYlPcdj/+OAqWf7VkuC5kvbJ53SK52IA=";
})
];
nativeBuildInputs = [
poetry-core
];
# Module has no real tests
doCheck = false;
pythonImportsCheck = [
"gitlike_commands"
];
meta = with lib; {
description = "Easy python module for creating git-style subcommand handling";
homepage = "https://github.com/unixorn/gitlike-commands";
changelog = "https://github.com/unixorn/gitlike-commands/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|