2022-09-15 20:30:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autocommand";
|
2023-08-07 06:35:12 +00:00
|
|
|
version = "2.2.2";
|
2022-09-15 20:30:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Lucretiel";
|
|
|
|
repo = "autocommand";
|
2023-08-07 06:37:55 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-08-07 06:35:12 +00:00
|
|
|
hash = "sha256-9bv9Agj4RpeyNJvTLUaMwygQld2iZZkoLb81rkXOd3E=";
|
2022-09-15 20:30:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# fails with: SyntaxError: invalid syntax
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-08-07 06:37:55 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-09-15 20:30:40 +00:00
|
|
|
|
2023-08-07 06:37:55 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"autocommand"
|
|
|
|
];
|
2022-09-15 20:30:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-08-07 06:37:55 +00:00
|
|
|
description = "Autocommand turns a python function into a CLI program";
|
2022-09-15 20:30:40 +00:00
|
|
|
homepage = "https://github.com/Lucretiel/autocommand";
|
2023-08-07 06:39:04 +00:00
|
|
|
license = licenses.lgpl3Only;
|
2023-07-23 17:30:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-09-15 20:30:40 +00:00
|
|
|
};
|
|
|
|
}
|