python310Packages.grad-cam: refactor

This commit is contained in:
Fabian Affolter
2023-12-20 11:27:37 +01:00
committed by GitHub
parent 63c7ae53f0
commit 25d1a883ef
@@ -7,6 +7,7 @@
, opencv4
, pillow
, scikit-learn
, setuptools
, torch
, torchvision
, ttach
@@ -16,8 +17,9 @@
buildPythonPackage rec {
pname = "grad-cam";
version = "1.5.0";
disabled = pythonOlder "3.6";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
@@ -25,9 +27,14 @@ buildPythonPackage rec {
};
postPatch = ''
substituteInPlace requirements.txt --replace "opencv-python" "opencv"
substituteInPlace requirements.txt\
--replace "opencv-python" "opencv"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
matplotlib
numpy