Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 42 lines 850 B view raw
1{ 2 black, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lib, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "blacken-docs"; 12 version = "1.15.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "adamchainz"; 17 repo = "blacken-docs"; 18 rev = version; 19 hash = "sha256-3FGuFOAHCcybPwujWlh58NWtuF5CebaKTgBWgCGpSL8="; 20 }; 21 22 build-system = [ 23 setuptools 24 ]; 25 26 dependencies = [ 27 black 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 ]; 33 34 meta = with lib; { 35 homepage = "https://github.com/adamchainz/blacken-docs"; 36 changelog = "https://github.com/adamchainz/blacken-docs/blob/${src.rev}/CHANGELOG.rst"; 37 description = "Run Black on Python code blocks in documentation files"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ l0b0 ]; 40 mainProgram = "blacken-docs"; 41 }; 42}