fix test not beeing exposed

This commit is contained in:
Jörg Thalheim 2023-09-22 15:39:03 +02:00
parent 1f129416c7
commit e2cf3c1601
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ python3.pkgs.buildPythonPackage {
propagatedBuildInputs = dependencies;
# also re-expose dependencies so we test them in CI
passthru.tests = (lib.mapAttrs' (n: lib.nameValuePair "package-${n}") runtimeDependenciesAsSet) // {
passthru.tests = (lib.mapAttrs' (n: lib.nameValuePair "clan-dep-${n}") runtimeDependenciesAsSet) // {
clan-pytest = runCommand "clan-pytest" { nativeBuildInputs = [ checkPython ] ++ pytestDependencies; } ''
cp -r ${source} ./src
chmod +w -R ./src

View File

@ -1,4 +1,4 @@
{ lib, inputs, ... }:
{ inputs, ... }:
{
perSystem = { self', pkgs, ... }: {
devShells.clan-cli = pkgs.callPackage ./shell.nix {
@ -18,7 +18,7 @@
## End optional dependencies
};
checks = lib.mkDefault self'.packages.clan-cli.tests;
checks = self'.packages.clan-cli.tests;
};
}