1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "autocommand";
10 version = "2.2.2";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "Lucretiel";
17 repo = "autocommand";
18 rev = "refs/tags/${version}";
19 hash = "sha256-9bv9Agj4RpeyNJvTLUaMwygQld2iZZkoLb81rkXOd3E=";
20 };
21
22 # fails with: SyntaxError: invalid syntax
23 doCheck = false;
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [
30 "autocommand"
31 ];
32
33 meta = with lib; {
34 description = "Autocommand turns a python function into a CLI program";
35 homepage = "https://github.com/Lucretiel/autocommand";
36 license = licenses.lgpl3Only;
37 maintainers = with maintainers; [ ];
38 };
39}