1 { lib, stdenv, fetchurl, fetchpatch, python, root, makeWrapper, zlib, withRootSupport ? false }:
3 stdenv.mkDerivation rec {
8 url = "https://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
9 hash = "sha256-IVI/ova2yPM0iVnzqUhzSpMMollR08kZC0Qk4Tc18qQ=";
12 nativeBuildInputs = with python.pkgs; [ cython makeWrapper ];
13 buildInputs = [ python ]
14 ++ (with python.pkgs; [ numpy matplotlib ])
15 ++ lib.optional withRootSupport root;
16 propagatedBuildInputs = [ zlib ];
18 enableParallelBuilding = true;
21 touch pyext/yoda/*.{pyx,pxd}
26 for prog in "$out"/bin/*; do
27 wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
31 hardeningDisable = [ "format" ];
33 doInstallCheck = true;
34 installCheckTarget = "check";
37 description = "Provides small set of data analysis (specifically histogramming) classes";
38 license = lib.licenses.gpl3Only;
39 homepage = "https://yoda.hepforge.org";
40 platforms = lib.platforms.unix;
41 maintainers = with lib.maintainers; [ veprbl ];