depot/third_party/nixpkgs/pkgs/development/python-modules/autocommand/default.nix

40 lines
795 B
Nix
Raw Normal View History

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