Merge pull request #249856 from tjni/correctionlib

python3.pkgs.correctionlib: clean up / fix up build dependencies
This commit is contained in:
OTABI Tomoya 2023-08-19 01:07:08 +09:00 committed by GitHub
commit 6f764cd565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,13 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, cmake
, numpy
, scikit-build
, setuptools
, setuptools-scm
, wheel
, pybind11
, pydantic
, pytestCheckHook
@ -24,12 +26,27 @@ buildPythonPackage rec {
hash = "sha256-h3eggtPLSF/8ShQ5xzowZW1KSlcI/YBsPu3lsSyzHkw=";
};
patches = [
(fetchpatch {
name = "ci-maintenance.patch";
url = "https://github.com/cms-nanoAOD/correctionlib/commit/924031637b040f6e8e4930c46a9f7560c59db23d.patch";
hash = "sha256-jq3ojMsO2Ex9om8tVpEY9uwwelXPzgQ+KCPN0bgda8w=";
includes = [ "pyproject.toml" ];
})
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/cms-nanoAOD/correctionlib/commit/c4fd64ca0e5ce806890e8f0ae8e792dcc4537d38.patch";
hash = "sha256-8ID2jEnmfYmPxWMtRviBc3t1W4p3Y+lAzijFtYBEtyk=";
})
];
nativeBuildInputs = [
cmake
numpy
scikit-build
setuptools
setuptools-scm
wheel
pybind11
];
@ -44,7 +61,7 @@ buildPythonPackage rec {
dontUseCmakeConfigure = true;
SETUPTOOLS_SCM_PRETEND_VERSION = version;
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeCheckInputs = [
pytestCheckHook