python3Packages.pyhepmc: init at 2.12.0

This commit is contained in:
Dmitry Kalinkin
2023-09-01 00:17:25 -04:00
parent 926db2b144
commit 8ce23e17f1
2 changed files with 67 additions and 0 deletions
@@ -0,0 +1,65 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cmake
, setuptools
, setuptools-scm
, numpy
, pybind11
, wheel
, pytestCheckHook
, graphviz
}:
buildPythonPackage rec {
pname = "pyhepmc";
version = "2.12.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "scikit-hep";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-po1ad02dpY69RRhaRApskH6tdOaSIsCl5PgpjsAzyKo=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
setuptools
setuptools-scm
wheel
];
buildInputs = [
pybind11
];
propagatedBuildInputs = [
numpy
];
dontUseCmakeConfigure = true;
SETUPTOOLS_SCM_PRETEND_VERSION = version;
CMAKE_ARGS = [ "-DEXTERNAL_PYBIND11=ON" ];
preBuild = ''
export CMAKE_BUILD_PARALLEL_LEVEL="$NIX_BUILD_CORES"
'';
nativeCheckInputs = [
graphviz
pytestCheckHook
];
pythonImportsCheck = [ "pyhepmc" ];
meta = {
description = "Easy-to-use Python bindings for HepMC3";
homepage = "https://github.com/scikit-hep/pyhepmc";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
};
}
+2
View File
@@ -8190,6 +8190,8 @@ self: super: with self; {
pyheos = callPackage ../development/python-modules/pyheos { };
pyhepmc = callPackage ../development/python-modules/pyhepmc { };
pyhiveapi = callPackage ../development/python-modules/pyhiveapi { };
pyhumps = callPackage ../development/python-modules/pyhumps { };