summaryrefslogtreecommitdiffstats
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2017-01-09 03:30:05 -0500
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2017-03-01 22:53:40 -0500
commite60805061b313fad4e4e3544a3c128df7dda5ace (patch)
treeae68cb502e33fff13f6dd7b51c1859ea2f4a9a6f /pkgs/top-level
parentfa8afc05c0d1abb5ed81bccfa2b65fb06874e863 (diff)
pythonPackages.pyhepmc: init at 0.5.0
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/python-packages.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 48a2a3e4c0b8..f3c764d1d070 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5084,6 +5084,41 @@ in {
};
};
+ pyhepmc = buildPythonPackage rec {
+ name = "pyhepmc-${version}";
+ version = "0.5.0";
+ disabled = isPy3k;
+
+ src = pkgs.fetchurl {
+ url = "mirror://pypi/p/pyhepmc/${name}.tar.gz";
+ sha256 = "1rbi8gqgclfvaibv9kzhfis11gw101x8amc93qf9y08ny4jfyr1d";
+ };
+
+ patches = [
+ # merge PR https://bitbucket.org/andybuckley/pyhepmc/pull-requests/1/add-incoming-outgoing-generators-for/diff
+ ../development/python-modules/pyhepmc_export_edges.patch
+ # add bindings to Flow class
+ ../development/python-modules/pyhepmc_export_flow.patch
+ ];
+
+ # regenerate python wrapper
+ preConfigure = ''
+ rm hepmc/hepmcwrap.py
+ swig -c++ -I${pkgs.hepmc}/include -python hepmc/hepmcwrap.i
+ '';
+
+ buildInputs = with pkgs; [ swig hepmc ];
+
+ HEPMCPATH = pkgs.hepmc;
+
+ meta = {
+ description = "A simple wrapper on the main classes of the HepMC event simulation representation, making it possible to create, read and manipulate HepMC events from Python code";
+ license = licenses.gpl2;
+ maintainers = with maintainers; [ veprbl ];
+ platforms = platforms.all;
+ };
+ };
+
pytest = self.pytest_30;
pytest_27 = callPackage ../development/python-modules/pytest/2_7.nix {};