python3Packages.pytorch-lightning: unbreak

...torchmetrics dependency was missing
main
Someone Serge 2 years ago
parent defebc5bb9
commit 291a12d9a7
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4
  1. 11
      pkgs/development/python-modules/pytorch-lightning/default.nix
  2. 2
      pkgs/development/python-modules/torchmetrics/default.nix

@ -3,10 +3,13 @@
, fetchFromGitHub , fetchFromGitHub
, isPy27 , isPy27
, future , future
, fsspec
, packaging
, pytestCheckHook , pytestCheckHook
, pytorch , pytorch
, pyyaml , pyyaml
, tensorboard , tensorboard
, torchmetrics
, tqdm }: , tqdm }:
buildPythonPackage rec { buildPythonPackage rec {
@ -22,11 +25,19 @@ buildPythonPackage rec {
sha256 = "sha256-GP6/VZuRv8dS5wKQW7RbtOSa2vV9Af2Jp+ioEW3bIgc="; sha256 = "sha256-GP6/VZuRv8dS5wKQW7RbtOSa2vV9Af2Jp+ioEW3bIgc=";
}; };
postPatch = ''
sed -i '/setuptools==/d' requirements.txt
sed -i 's/pyDeprecate==/pyDeprecate>=/' requirements.txt
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
packaging
future future
fsspec
pytorch pytorch
pyyaml pyyaml
tensorboard tensorboard
torchmetrics
tqdm tqdm
]; ];

@ -10,6 +10,7 @@
, pytorch , pytorch
, pytestCheckHook , pytestCheckHook
, torchmetrics , torchmetrics
, pytorch-lightning
}: }:
let let
@ -37,6 +38,7 @@ buildPythonPackage {
]; ];
checkInputs = [ checkInputs = [
pytorch-lightning
scikit-learn scikit-learn
scikitimage scikitimage
cloudpickle cloudpickle

Loading…
Cancel
Save