Commit bd34f35d authored by Millian Poquet's avatar Millian Poquet
Browse files

nix: reuse kapack's pybatsim definition

parent f244c9fe
......@@ -54,3 +54,6 @@ docs/_build/
# emacs and vim tmp files
*~
*.swp
# Nix
result*
......@@ -5,11 +5,8 @@
let
self = rec {
pybatsim = kapack.pkgs.python3Packages.buildPythonPackage rec {
pname = "pybatsim";
version = "local";
format = "pyproject";
pybatsim = kapack.pybatsim.overrideAttrs (attrs: rec {
name = "${kapack.pybatsim.name}-local";
src = kapack.pkgs.lib.sourceByRegex ./. [
"^pyproject\.toml"
"^poetry\.lock"
......@@ -33,31 +30,7 @@ let
"^schedulers/unMaintained"
"^schedulers/unMaintained/.*\.py"
];
buildInputs = with kapack.pkgs.python3Packages; [
poetry
];
propagatedBuildInputs = with kapack.pkgs.python3Packages; [
sortedcontainers
pyzmq
redis
click
docopt
kapack.procset
];
doCheck = false;
meta = with kapack.pkgs.lib; {
description = "Python API and schedulers for Batsim";
homepage = "https://gitlab.inria.fr/batsim/pybatsim";
platforms = platforms.all;
license = licenses.lgpl3;
broken = false;
longDescription = "PyBatsim is the Python API for Batsim.";
};
};
});
};
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