python312Packages.blacken-docs: move from top-level

We need it as a Python module for nbqa.
This commit is contained in:
Robert Schütz 2024-09-21 18:20:38 -07:00
parent 5f3e93af4d
commit 8a242099b8
3 changed files with 17 additions and 12 deletions

View File

@ -1,12 +1,16 @@
{ black
, fetchFromGitHub
, lib
, python3
{
black,
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
setuptools,
}:
python3.pkgs.buildPythonApplication rec {
buildPythonPackage rec {
pname = "blacken-docs";
version = "1.15.0";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "adamchainz";
@ -15,17 +19,16 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-3FGuFOAHCcybPwujWlh58NWtuF5CebaKTgBWgCGpSL8=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
build-system = [
setuptools
];
propagatedBuildInputs = [
dependencies = [
black
];
nativeCheckInputs = [
black
python3.pkgs.pytestCheckHook
pytestCheckHook
];
meta = with lib; {

View File

@ -6605,7 +6605,7 @@ with pkgs;
bbin = callPackage ../development/tools/bbin { };
blacken-docs = callPackage ../tools/misc/blacken-docs { };
blacken-docs = with python3Packages; toPythonApplication blacken-docs;
bore = callPackage ../tools/networking/bore {
inherit (darwin) Libsystem;

View File

@ -1667,6 +1667,8 @@ self: super: with self; {
black = callPackage ../development/python-modules/black { };
blacken-docs = callPackage ../development/python-modules/blacken-docs { };
blackjax = callPackage ../development/python-modules/blackjax { };
black-macchiato = callPackage ../development/python-modules/black-macchiato { };