python3Packages.pyhepmc: init at 2.12.0
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user