clan-cli: unbreak build
All checks were successful
build / test (pull_request) Successful in 20s

This commit is contained in:
Jörg Thalheim 2023-08-10 11:30:12 +02:00
parent 6189ed0e76
commit 8e07fc28ab
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,4 @@
{ lib
, python3
{ python3
, ruff
, runCommand
, installShellFiles
@ -37,10 +36,10 @@ let
# - vendor the jsonschema nix lib (copy instead of symlink).
# - lib.cleanSource prevents unnecessary rebuilds when `self` changes.
source = runCommand "clan-cli-source" { } ''
cp -r ${lib.cleanSource ./.} $out
cp -r ${./.} $out
chmod -R +w $out
rm $out/clan_cli/config/jsonschema
cp -r ${lib.cleanSource (self + /lib/jsonschema)} $out/clan_cli/config/jsonschema
cp -r ${self + /lib/jsonschema} $out/clan_cli/config/jsonschema
'';
in
python3.pkgs.buildPythonPackage {

View File

@ -8,8 +8,8 @@ description = "cLAN CLI tool"
dynamic = [ "version" ]
scripts = { clan = "clan_cli:main" }
[tool.setuptools.packages.find]
where = []
[tool.setuptools.packages]
find = {}
[tool.setuptools.package-data]
clan_cli = ["config/jsonschema/*"]