1{ 2 black, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lib, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "blacken-docs"; 12 version = "1.20.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "adamchainz"; 17 repo = "blacken-docs"; 18 tag = version; 19 hash = "sha256-A8hSpywuhdS+RNm3QQJ11ofWrYZgiOFRwIoD3mlwc4k="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ black ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 meta = { 29 homepage = "https://github.com/adamchainz/blacken-docs"; 30 changelog = "https://github.com/adamchainz/blacken-docs/blob/${src.rev}/CHANGELOG.rst"; 31 description = "Run Black on Python code blocks in documentation files"; 32 license = lib.licenses.mit; 33 maintainers = [ lib.maintainers.l0b0 ]; 34 mainProgram = "blacken-docs"; 35 }; 36}