about summary refs log tree commit diff
path: root/pkgs/development/python-modules/autocommand/default.nix
blob: 7e4893e98af9d76c946b99db98e7ce33084e4c87 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "autocommand";
  version = "2.2.1";

  src = fetchFromGitHub {
    owner = "Lucretiel";
    repo = "autocommand";
    rev = version;
    sha256 = "sha256-bjoVGfP57qhvPuHHcMP8JQddAaW4/fEyatElk1UEPZo=";
  };

  # fails with: SyntaxError: invalid syntax
  doCheck = false;

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "autocommand" ];

  meta = with lib; {
    description = " Autocommand turns a python function into a CLI program ";
    homepage = "https://github.com/Lucretiel/autocommand";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ SuperSandro2000 ];
  };
}