nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 947 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 tokenize-rt, 8}: 9 10buildPythonPackage rec { 11 pname = "add-trailing-comma"; 12 version = "4.0.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "asottile"; 17 repo = "add-trailing-comma"; 18 tag = "v${version}"; 19 hash = "sha256-Ts04kjhGE0lgrHyT+EuJsVLIYU/842azG1ZUHTyFijc="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ tokenize-rt ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "add_trailing_comma" ]; 29 30 meta = { 31 description = "Tool (and pre-commit hook) to automatically add trailing commas to calls and literals"; 32 homepage = "https://github.com/asottile/add-trailing-comma"; 33 changelog = "https://github.com/asottile/add-trailing-comma/releases/tag/${src.tag}"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ gador ]; 36 mainProgram = "add-trailing-comma"; 37 }; 38}