c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
39 lines
795 B
Nix
39 lines
795 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "autocommand";
|
|
version = "2.2.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Lucretiel";
|
|
repo = "autocommand";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-9bv9Agj4RpeyNJvTLUaMwygQld2iZZkoLb81rkXOd3E=";
|
|
};
|
|
|
|
# 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.lgpl3Only;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|