Merge pull request #188992 from SuperSandro2000/python-cleanups

authored by Sandro and committed by GitHub fac09357 2fa6e525

+11 -9
+2 -3
pkgs/development/python-modules/qiskit-machine-learning/default.nix
··· 11 11 , qiskit-terra 12 12 , scikit-learn 13 13 , sparse 14 - # Optional inputs 15 - , withTorch ? true 16 14 , torch 17 15 # Check Inputs 18 16 , pytestCheckHook ··· 38 36 fastdtw 39 37 numpy 40 38 psutil 39 + torch 41 40 qiskit-terra 42 41 scikit-learn 43 42 sparse 44 - ] ++ lib.optional withTorch torch; 43 + ]; 45 44 46 45 doCheck = false; # TODO: enable. Tests fail on unstable due to some multithreading issue? 47 46 checkInputs = [
+1 -2
pkgs/development/python-modules/rising/default.nix
··· 3 3 , isPy27 4 4 , fetchFromGitHub 5 5 , pytestCheckHook 6 - , pytest-cov 7 6 , dill 8 7 , numpy 9 8 , torch ··· 25 24 }; 26 25 27 26 propagatedBuildInputs = [ numpy torch threadpoolctl tqdm ]; 28 - checkInputs = [ dill pytest-cov pytestCheckHook ]; 27 + checkInputs = [ dill pytestCheckHook ]; 29 28 30 29 disabledTests = [ "test_affine" ]; # deprecated division operator '/' 31 30
+8 -4
pkgs/development/python-modules/torchgpipe/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , isPy27 5 - , pytest-runner 4 + , pythonOlder 6 5 , pytestCheckHook 7 6 , torch 8 7 }: ··· 11 10 pname = "torchgpipe"; 12 11 version = "0.0.7"; 13 12 14 - disabled = isPy27; 13 + disabled = pythonOlder "3.6"; 15 14 16 15 src = fetchFromGitHub { 17 16 owner = "kakaobrain"; ··· 20 19 sha256 = "0ki0njhmz1i3pkpr3y6h6ac7p5qh1kih06mknc2s18mfw34f2l55"; 21 20 }; 22 21 22 + postPatch = '' 23 + substituteInPlace setup.py \ 24 + --replace "'pytest-runner'" "" 25 + ''; 26 + 23 27 propagatedBuildInputs = [ torch ]; 24 28 25 - checkInputs = [ pytest-runner pytestCheckHook ]; 29 + checkInputs = [ pytestCheckHook ]; 26 30 disabledTests = [ 27 31 "test_inplace_on_requires_grad" 28 32 "test_input_requiring_grad"