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