generated from Luis/nextjs-python-web-template
Merge pull request 'templates: add python-project' (#10) from python-template into main
This commit is contained in:
10
templates/python-project/flake-module.nix
Normal file
10
templates/python-project/flake-module.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
perSystem = {pkgs, ...}: let
|
||||
pyproject = builtins.fromTOML (builtins.readFile ./src/pyproject.toml);
|
||||
name = pyproject.project.name;
|
||||
package = pkgs.callPackage ./default.nix {};
|
||||
in {
|
||||
# packages.${name} = package;
|
||||
checks.python-template = package.tests.check;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user