Skip to content
Snippets Groups Projects
default.nix 3.47 KiB
{ kapack ? import
    (fetchTarball "https://github.com/oar-team/nur-kapack/archive/master.tar.gz")
  {}
, doCheck ? false
, doCoverage ? true
, batexpe ? kapack.batexpe
, python ? kapack.pkgs.python3
, pythonPackages ? kapack.pkgs.python3Packages
}:

with kapack.pkgs;

let self = rec {
  batsim_latest = kapack.batsim.overrideAttrs (attr: rec{
    name = "batsim";
    version = "e3dbc246c5e3acd117a84909d351b94bfb6e4a59"; # commit "code: prevent temporary memleak for zmq msgs"
    src = fetchgit rec {
      url = "https://framagit.org/batsim/batsim.git";
      rev = version;
      sha256 = "sha256-+SGdNrPjRTGInrEQyFMCWcPIESD5yS+Enc1WRDCdKbQ=";
    };
  });

  batmen = kapack.batsched.overrideAttrs (attr: rec {
    name = "batmen";
    version = "d7c94f080f54f88fb6d79fb89dbbd20eb7783ebc"; # commit 10/05/23 "dev: added the number of cores as an argument in the CLI. Closes #16"
    src = fetchGit rec {
      url = "https://gitlab.irit.fr/sepia-pub/mael/batmen.git";
      rev = version;
    };
  });

  swf2userSessions = pythonPackages.buildPythonPackage rec {
    pname = "swf2userSessions";
    format = "pyproject";
    version = "612382de6965bce418a34acb1cc764c5c2b622c9"; # commit 26/05/23 "align with batmen-tools: changed validity condition for jobs"
    buildInputs = with pythonPackages; [flit];
    propagatedBuildInputs = [ pythonPackages.networkx ];
    src = builtins.fetchGit {
      url = "https://gitlab.irit.fr/sepia-pub/mael/swf2userSessions.git";
      rev = version;
    };
  };

  batmenTools = pythonPackages.buildPythonPackage rec {
    pname = "batmenTools";
    format = "pyproject";
    version = "caefe1c12a059c919d2710ee8a00b9c179faf907"; # commit 26/05/23 "propagate previous change in swf2batsim_split_by_user"
    buildInputs = with pythonPackages; [flit];
    propagatedBuildInputs = [ 
      pythonPackages.pandas
      pythonPackages.numpy 
    ];
    src = builtins.fetchGit {
      url = "https://gitlab.irit.fr/sepia-pub/mael/batmen-tools.git";
      rev = version;
    };
  };

  massif_to_csv = pythonPackages.buildPythonPackage rec {
    pname = "massif_to_csv";
    version = "0.1.0";
    propagatedBuildInputs = [msparser];
    src = builtins.fetchurl {
      url = "https://files.pythonhosted.org/packages/09/2d/674c3405939f198e963ba5e73c2a331ef3364bc52da9b123c8f16dd60c8d/massif_to_csv-0.1.0.tar.gz";
      sha256 = "f5eb01dce6d2e4a6c9812fd58f0add20b6739ba340482b7902f311298eb37dfb";
    };
  };

  # a massif_to_csv dependency