nixpkgs/pkgs/development/python-modules/autocommand/default.nix
Fabian Affolter 390fba20b4
python311Packages.autocommand: add format
- disable on unsupported Python releases
2023-08-07 08:40:21 +02:00

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