python-template: backport some changes from clan-cli

This commit is contained in:
DavHau
2023-08-01 15:30:14 +02:00
parent cc3ddfb99e
commit 1165fee6f3
3 changed files with 15 additions and 14 deletions

View File

@@ -1,10 +1,16 @@
{
perSystem = { pkgs, ... }:
{ self, ... }: {
perSystem = { self', pkgs, ... }:
let
package = pkgs.callPackage ./default.nix { };
name = "python-template";
in
{
# packages.${name} = package;
checks.python-template = package.tests.check;
packages.${name} = pkgs.callPackage ./default.nix { };
devShells.${name} = pkgs.callPackage ./shell.nix {
inherit self;
package = (self'.packages.${name});
};
checks.python-template = self'.packages.${name}.tests.check;
};
}