Commit 8b814242 authored by Millian Poquet's avatar Millian Poquet
Browse files

nix: package pybatsim-example + use shell

parent 09ee49ba
......@@ -56,6 +56,32 @@ let
propagatedBuildInputs = lib.remove pybatsim-core-base attrs.propagatedBuildInputs ++
[ pybatsim-core ];
});
# external scheduler example
pybatsim-example = python3Packages.buildPythonPackage rec {
pname = "pybatsim-example";
version = "local";
format = "pyproject";
src = lib.sourceByRegex ./pybatsim-example [
"^pyproject\.toml$"
"^poetry\.lock$"
"^.*\.py$"
];
buildInputs = with python3Packages; [
poetry
];
propagatedBuildInputs = [
pybatsim-core
];
};
# example shell that enables to run the example scheduler (run `pybatsim rejector` in the shell)
example-shell = pkgs.mkShell rec {
buildInputs = [
pybatsim-example
];
};
};
in
self
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment