added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
24
nyx/flake/templates/python/default.nix
Normal file
24
nyx/flake/templates/python/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
doCheck ? false,
|
||||
...
|
||||
}:
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "sample-python-project";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ./.;
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [];
|
||||
|
||||
nativeCheckInputs = [
|
||||
python3Packages.pytest
|
||||
];
|
||||
|
||||
checkPhase = lib.optionals doCheck ''
|
||||
runHook preCheck
|
||||
pytest
|
||||
runHook postCheck
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue