Merge pull request #116487 from veprbl/pr/professor_init
professor: init at 2.3.3
This commit is contained in:
commit
bf5c995ad2
41
pkgs/applications/science/physics/professor/default.nix
Normal file
41
pkgs/applications/science/physics/professor/default.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ lib, stdenv, fetchurl, eigen, makeWrapper, python3 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "professor";
|
||||||
|
version = "2.3.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
name = "Professor-${version}.tar.gz";
|
||||||
|
url = "https://professor.hepforge.org/downloads/?f=Professor-${version}.tar.gz";
|
||||||
|
sha256 = "17q026r2fpfxzf74d1013ksy3a9m57rcr2q164n9x02ci40bmib0";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace '-shared -o' '-shared -install_name "$(out)/$@" -o'
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ python3.pkgs.cython makeWrapper ];
|
||||||
|
buildInputs = [ python3 eigen ];
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [ iminuit numpy matplotlib yoda ];
|
||||||
|
|
||||||
|
CPPFLAGS = [ "-I${eigen}/include/eigen3" ];
|
||||||
|
PREFIX = placeholder "out";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
for prog in "$out"/bin/*; do
|
||||||
|
wrapProgram "$prog" --set PYTHONPATH "$PYTHONPATH:$(toPythonPath "$out")"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckTarget = "check";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A tuning tool for Monte Carlo event generators";
|
||||||
|
homepage = "https://professor.hepforge.org/";
|
||||||
|
license = licenses.unfree; # no license specified
|
||||||
|
maintainers = [ maintainers.veprbl ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
26
pkgs/development/python-modules/iminuit/default.nix
Normal file
26
pkgs/development/python-modules/iminuit/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ lib, buildPythonPackage, isPy3k, fetchPypi, cmake, numpy, pytestCheckHook }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "iminuit";
|
||||||
|
version = "2.4.0";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "350c13d33f3ec5884335aea1cc11a17ae49dd8e6b2181c3f1b3c9c27e2e0b228";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
propagatedBuildInputs = [ numpy ];
|
||||||
|
|
||||||
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/scikit-hep/iminuit";
|
||||||
|
description = "Python interface for the Minuit2 C++ library";
|
||||||
|
license = with licenses; [ mit lgpl2Only ];
|
||||||
|
maintainers = with maintainers; [ veprbl ];
|
||||||
|
};
|
||||||
|
}
|
@ -28445,6 +28445,8 @@ in
|
|||||||
|
|
||||||
elmerfem = callPackage ../applications/science/physics/elmerfem {};
|
elmerfem = callPackage ../applications/science/physics/elmerfem {};
|
||||||
|
|
||||||
|
professor = callPackage ../applications/science/physics/professor { };
|
||||||
|
|
||||||
sacrifice = callPackage ../applications/science/physics/sacrifice {};
|
sacrifice = callPackage ../applications/science/physics/sacrifice {};
|
||||||
|
|
||||||
sherpa = callPackage ../applications/science/physics/sherpa {};
|
sherpa = callPackage ../applications/science/physics/sherpa {};
|
||||||
|
@ -3277,6 +3277,8 @@ in {
|
|||||||
|
|
||||||
imgsize = callPackage ../development/python-modules/imgsize { };
|
imgsize = callPackage ../development/python-modules/imgsize { };
|
||||||
|
|
||||||
|
iminuit = callPackage ../development/python-modules/iminuit { };
|
||||||
|
|
||||||
immutables = callPackage ../development/python-modules/immutables { };
|
immutables = callPackage ../development/python-modules/immutables { };
|
||||||
|
|
||||||
impacket = callPackage ../development/python-modules/impacket { };
|
impacket = callPackage ../development/python-modules/impacket { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user