mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #249856 from tjni/correctionlib
python3.pkgs.correctionlib: clean up / fix up build dependencies
This commit is contained in:
commit
6f764cd565
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user