pythonPackages.fastnlo_toolkit: init

This commit is contained in:
Dmitry Kalinkin 2021-04-24 08:41:51 -04:00
parent dd5c766078
commit 4c00f66ef6
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333
2 changed files with 17 additions and 9 deletions

View file

@ -1,14 +1,16 @@
{ lib
, stdenv
, fetchurl
, autoreconfHook
, boost
, fastjet
, gfortran
, lhapdf
, python2
, root
, ncurses
, python
, swig
, yoda
, zlib
, withPython ? false
}:
stdenv.mkDerivation rec {
@ -20,19 +22,20 @@ stdenv.mkDerivation rec {
sha256 = "0fm9k732pmi3prbicj2yaq815nmcjll95fagjqzf542ng3swpqnb";
};
nativeBuildInputs = lib.optional withPython autoreconfHook;
buildInputs = [
boost
fastjet
gfortran
gfortran.cc.lib
lhapdf
python2
root
yoda
];
] ++ lib.optional withPython python
++ lib.optional (withPython && python.isPy3k) ncurses;
propagatedBuildInputs = [
zlib
];
] ++ lib.optional withPython swig;
preConfigure = ''
substituteInPlace ./fastnlotoolkit/Makefile.in \
@ -41,7 +44,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--with-yoda=${yoda}"
];
] ++ lib.optional withPython "--enable-pyext";
enableParallelBuilding = true;

View file

@ -2373,6 +2373,11 @@ in {
fastjsonschema = callPackage ../development/python-modules/fastjsonschema { };
fastnlo_toolkit = toPythonModule (pkgs.fastnlo_toolkit.override {
withPython = true;
inherit python;
});
fastpair = callPackage ../development/python-modules/fastpair { };
fastparquet = callPackage ../development/python-modules/fastparquet { };