mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Merge pull request #259994 from GaetanLepage/mmcv
python310Packages.mmcv: 2.0.0 -> 2.0.1
This commit is contained in:
commit
b17a59b240
@ -12,6 +12,7 @@
|
|||||||
, addict
|
, addict
|
||||||
, ninja
|
, ninja
|
||||||
, which
|
, which
|
||||||
|
, pybind11
|
||||||
, onnx
|
, onnx
|
||||||
, onnxruntime
|
, onnxruntime
|
||||||
, scipy
|
, scipy
|
||||||
@ -49,16 +50,16 @@ let
|
|||||||
in
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mmcv";
|
pname = "mmcv";
|
||||||
version = "2.0.0";
|
version = "2.0.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "open-mmlab";
|
owner = "open-mmlab";
|
||||||
repo = pname;
|
repo = "mmcv";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-36PcvoB0bM0VoNb2psURYFo3krmgHG47OufU6PVjHyw=";
|
hash = "sha256-w40R8ftLQIu66F2EtXFAqvLGxR/6wvxLhxxIdsQLZhI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
@ -96,7 +97,7 @@ buildPythonPackage rec {
|
|||||||
nativeBuildInputs = [ ninja which ]
|
nativeBuildInputs = [ ninja which ]
|
||||||
++ lib.optionals cudaSupport [ cuda-native-redist ];
|
++ lib.optionals cudaSupport [ cuda-native-redist ];
|
||||||
|
|
||||||
buildInputs = [ torch ] ++ lib.optionals cudaSupport [ cuda-redist ];
|
buildInputs = [ pybind11 torch ] ++ lib.optionals cudaSupport [ cuda-redist ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook torchvision lmdb onnx onnxruntime scipy pyturbojpeg tifffile ];
|
nativeCheckInputs = [ pytestCheckHook torchvision lmdb onnx onnxruntime scipy pyturbojpeg tifffile ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user