1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "gitlike-commands";
10 version = "0.2.1";
11 pyproject = true;
12
13 disabled = pythonOlder "3.9";
14
15 src = fetchFromGitHub {
16 owner = "unixorn";
17 repo = "gitlike-commands";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-VjweN4gigzCNvg6TccZx2Xw1p7SusKplxUTZjItTQc0=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 # Module has no real tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "gitlike_commands"
31 ];
32
33 meta = with lib; {
34 description = "Easy python module for creating git-style subcommand handling";
35 homepage = "https://github.com/unixorn/gitlike-commands";
36 changelog = "https://github.com/unixorn/gitlike-commands/releases/tag/v${version}";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ fab ];
39 };
40}