blob: f1f4a5ed8cbbeea593daaa19b5b21d17e5f66afc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{ lib
, stdenv
, fetchurl
, fetchpatch
, python
, root
, makeWrapper
, zlib
, withRootSupport ? false
}:
stdenv.mkDerivation rec {
pname = "yoda";
version = "1.9.7";
src = fetchurl {
url = "https://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
hash = "sha256-jQe7BNy3k2SFhxihggNFLY2foAAp+pQjnq+oUpAyuP8=";
};
nativeBuildInputs = with python.pkgs; [
cython
makeWrapper
];
buildInputs = [
python
] ++ (with python.pkgs; [
numpy
matplotlib
]) ++ lib.optionals withRootSupport [
root
];
propagatedBuildInputs = [
zlib
];
enableParallelBuilding = true;
postPatch = ''
touch pyext/yoda/*.{pyx,pxd}
patchShebangs .
'';
postInstall = ''
for prog in "$out"/bin/*; do
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
done
'';
hardeningDisable = [ "format" ];
doInstallCheck = true;
installCheckTarget = "check";
meta = with lib; {
description = "Provides small set of data analysis (specifically histogramming) classes";
license = licenses.gpl3Only;
homepage = "https://yoda.hepforge.org";
changelog = "https://gitlab.com/hepcedar/yoda/-/blob/yoda-${version}/ChangeLog";
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
};
}
|