2024-09-26 11:04:55 +00:00
|
|
|
{
|
|
|
|
black,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
2024-09-26 11:04:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-08-10 07:59:29 +00:00
|
|
|
pname = "blacken-docs";
|
|
|
|
version = "1.15.0";
|
2024-09-26 11:04:55 +00:00
|
|
|
pyproject = true;
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adamchainz";
|
|
|
|
repo = "blacken-docs";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-3FGuFOAHCcybPwujWlh58NWtuF5CebaKTgBWgCGpSL8=";
|
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
dependencies = [
|
2023-08-10 07:59:29 +00:00
|
|
|
black
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2024-09-26 11:04:55 +00:00
|
|
|
pytestCheckHook
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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 = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ l0b0 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "blacken-docs";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
}
|