python310Packages.diagrams: remove black dependency
This commit is contained in:
parent
b68f511512
commit
68aba2a583
|
@ -2,7 +2,6 @@
|
|||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, black
|
||||
, jinja2
|
||||
, poetry-core
|
||||
, round
|
||||
|
@ -38,13 +37,14 @@ buildPythonPackage rec {
|
|||
patches = [
|
||||
# The build-system section is missing
|
||||
./build_poetry.patch
|
||||
./remove-black-requirement.patch
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# Despite living in 'tool.poetry.dependencies',
|
||||
# these are only used at build time to process the image resource files
|
||||
nativeBuildInputs = [ black inkscape imagemagick jinja2 poetry-core round ];
|
||||
nativeBuildInputs = [ inkscape imagemagick jinja2 poetry-core round ];
|
||||
|
||||
propagatedBuildInputs = [ graphviz ];
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
diff --git a/autogen.sh b/autogen.sh
|
||||
index acbcacb..1f60b83 100755
|
||||
--- a/autogen.sh
|
||||
+++ b/autogen.sh
|
||||
@@ -21,11 +21,6 @@
|
||||
exit 1
|
||||
fi
|
||||
|
||||
-if ! [ -x "$(command -v black)" ]; then
|
||||
- echo 'black is not installed'
|
||||
- exit 1
|
||||
-fi
|
||||
-
|
||||
# preprocess the resources
|
||||
for pvd in "${providers[@]}"; do
|
||||
# convert the svg to png for azure provider
|
||||
@@ -55,7 +50,3 @@
|
||||
# Generate doc for custom module
|
||||
echo "generating the docs for custom"
|
||||
python -m scripts.generate "custom"
|
||||
-
|
||||
-# run black
|
||||
-echo "linting the all the diagram modules"
|
||||
-black "$app_root_dir"/**/*.py
|
Loading…
Reference in a new issue