nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 41 lines 873 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "autocommand"; 11 version = "2.2.2"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "Lucretiel"; 16 repo = "autocommand"; 17 tag = version; 18 hash = "sha256-9bv9Agj4RpeyNJvTLUaMwygQld2iZZkoLb81rkXOd3E="; 19 }; 20 21 postPatch = '' 22 # _MissingDynamic: `license` defined outside of `pyproject.toml` is ignored. 23 rm setup.py 24 ''; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 # fails with: SyntaxError: invalid syntax 29 doCheck = false; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "autocommand" ]; 34 35 meta = { 36 description = "Autocommand turns a python function into a CLI program"; 37 homepage = "https://github.com/Lucretiel/autocommand"; 38 license = lib.licenses.lgpl3Only; 39 maintainers = [ ]; 40 }; 41}