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/ ...@@ -54,3 +54,6 @@ docs/_build/
# emacs and vim tmp files # emacs and vim tmp files
*~ *~
*.swp *.swp
# Nix
result*
...@@ -5,11 +5,8 @@ ...@@ -5,11 +5,8 @@
let let
self = rec { self = rec {
pybatsim = kapack.pkgs.python3Packages.buildPythonPackage rec { pybatsim = kapack.pybatsim.overrideAttrs (attrs: rec {
pname = "pybatsim"; name = "${kapack.pybatsim.name}-local";
version = "local";
format = "pyproject";
src = kapack.pkgs.lib.sourceByRegex ./. [ src = kapack.pkgs.lib.sourceByRegex ./. [
"^pyproject\.toml" "^pyproject\.toml"
"^poetry\.lock" "^poetry\.lock"
...@@ -33,31 +30,7 @@ let ...@@ -33,31 +30,7 @@ let
"^schedulers/unMaintained" "^schedulers/unMaintained"
"^schedulers/unMaintained/.*\.py" "^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 in
self 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