blacken-docs: init at 1.15.0
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
This commit is contained in:
parent
65b150bc1f
commit
e295e134ff
38
pkgs/tools/misc/blacken-docs/default.nix
Normal file
38
pkgs/tools/misc/blacken-docs/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6916,6 +6916,8 @@ with pkgs;
|
||||||
|
|
||||||
bbin = callPackage ../development/tools/bbin { };
|
bbin = callPackage ../development/tools/bbin { };
|
||||||
|
|
||||||
|
blacken-docs = callPackage ../tools/misc/blacken-docs { };
|
||||||
|
|
||||||
bore = callPackage ../tools/networking/bore {
|
bore = callPackage ../tools/networking/bore {
|
||||||
inherit (darwin) Libsystem;
|
inherit (darwin) Libsystem;
|
||||||
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
|
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
|
||||||
|
|
Loading…
Reference in a new issue