Merge pull request #275533 from r-ryantm/auto-update/python310Packages.grad-cam

python310Packages.grad-cam: 1.4.8 -> 1.5.0
This commit is contained in:
Fabian Affolter 2023-12-21 10:56:14 +01:00 committed by GitHub
commit d5cde0e8dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@
, opencv4
, pillow
, scikit-learn
, setuptools
, torch
, torchvision
, ttach
@ -15,19 +16,25 @@
buildPythonPackage rec {
pname = "grad-cam";
version = "1.4.8";
disabled = pythonOlder "3.6";
format = "pyproject";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-BNcwDaEEmRsEoJ4nvvGfjZ9LdG0eRqZCFuY5/Gmp5N4=";
hash = "sha256-aw7Z/6/AMKH2PVBcOr8HxsmRDa6c3v8Xd4xa8HTiFGA=";
};
postPatch = ''
substituteInPlace requirements.txt --replace "opencv-python" "opencv"
substituteInPlace requirements.txt\
--replace "opencv-python" "opencv"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
matplotlib
numpy