37 lines
824 B
Nix
37 lines
824 B
Nix
{
|
|
black,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "blacken-docs";
|
|
version = "1.20.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adamchainz";
|
|
repo = "blacken-docs";
|
|
tag = version;
|
|
hash = "sha256-A8hSpywuhdS+RNm3QQJ11ofWrYZgiOFRwIoD3mlwc4k=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ black ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/adamchainz/blacken-docs";
|
|
changelog = "https://github.com/adamchainz/blacken-docs/blob/${src.rev}/CHANGELOG.rst";
|
|
description = "Run Black on Python code blocks in documentation files";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.l0b0 ];
|
|
mainProgram = "blacken-docs";
|
|
};
|
|
}
|