blob: 434f684b78d29dcbbe3ab3aca3ec70d6677c59f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ black
, fetchFromGitHub
, lib
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "blacken-docs";
version = "1.15.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "adamchainz";
repo = "blacken-docs";
rev = version;
hash = "sha256-3FGuFOAHCcybPwujWlh58NWtuF5CebaKTgBWgCGpSL8=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
];
propagatedBuildInputs = [
black
];
nativeCheckInputs = [
black
python3.pkgs.pytestCheckHook
];
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 ];
mainProgram = "blacken-docs";
};
}
|