2022-09-15 20:30:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autocommand";
|
|
|
|
version = "2.2.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Lucretiel";
|
|
|
|
repo = "autocommand";
|
|
|
|
rev = version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-bjoVGfP57qhvPuHHcMP8JQddAaW4/fEyatElk1UEPZo=";
|
2022-09-15 20:30:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# fails with: SyntaxError: invalid syntax
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-09-15 20:30:40 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|