10 withRootSupport ? false,
13 stdenv.mkDerivation rec {
17 src = fetchFromGitLab {
20 rev = "yoda-${version}";
21 hash = "sha256-sHvwgLH22fvdlh4oLjr4fzZ2WtBJMAlvr4Vxi9Xdf84=";
24 nativeBuildInputs = with python.pkgs; [
34 ++ (with python.pkgs; [
38 ++ lib.optionals withRootSupport [
42 propagatedBuildInputs = [
46 enableParallelBuilding = true;
49 touch pyext/yoda/*.{pyx,pxd}
52 substituteInPlace pyext/yoda/plotting/script_generator.py \
53 --replace '/usr/bin/env python' '${python.interpreter}'
57 for prog in "$out"/bin/*; do
58 wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
62 hardeningDisable = [ "format" ];
64 doInstallCheck = true;
66 installCheckTarget = "check";
69 description = "Provides small set of data analysis (specifically histogramming) classes";
70 license = licenses.gpl3Only;
71 homepage = "https://yoda.hepforge.org";
72 changelog = "https://gitlab.com/hepcedar/yoda/-/blob/yoda-${version}/ChangeLog";
73 platforms = platforms.unix;
74 maintainers = with maintainers; [ veprbl ];