depot/third_party/nixpkgs/pkgs/development/python-modules/autocommand/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

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; [ ];
};
}