16 lines
403 B
Nix
16 lines
403 B
Nix
{
|
|
perSystem = { pkgs, ... }:
|
|
let
|
|
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
|
|
name = pyproject.project.name;
|
|
package = pkgs.callPackage ./default.nix { };
|
|
shell = pkgs.callPackage ./shell.nix { };
|
|
in
|
|
{
|
|
packages.${name} = package;
|
|
devShells.${name} = shell;
|
|
packages.default = package;
|
|
checks = package.tests;
|
|
};
|
|
}
|