lol

python310Packages.gpytorch: integrate setuptools-scm build dependency

authored by

Theodore Ni and committed by
Yt
63ff0f7c b5a3cf62

+12 -4
+12 -4
pkgs/development/python-modules/gpytorch/default.nix
··· 3 , fetchFromGitHub 4 , linear_operator 5 , scikit-learn 6 , torch 7 , pytestCheckHook 8 }: ··· 19 hash = "sha256-cpkfjx5G/4duL1Rr4nkHTHi03TDcYbcx3bKP2Ny7Ijo="; 20 }; 21 22 - postPatch = '' 23 - substituteInPlace setup.py \ 24 - --replace 'find_version("gpytorch", "version.py")' \"$version\" 25 - ''; 26 27 propagatedBuildInputs = [ 28 linear_operator ··· 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 pythonImportsCheck = [ "gpytorch" ]; 37 disabledTests = [ 38 # AssertionError on number of warnings emitted 39 "test_deprecated_methods"
··· 3 , fetchFromGitHub 4 , linear_operator 5 , scikit-learn 6 + , setuptools 7 + , setuptools-scm 8 + , wheel 9 , torch 10 , pytestCheckHook 11 }: ··· 22 hash = "sha256-cpkfjx5G/4duL1Rr4nkHTHi03TDcYbcx3bKP2Ny7Ijo="; 23 }; 24 25 + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 + 27 + nativeBuildInputs = [ 28 + setuptools 29 + setuptools-scm 30 + wheel 31 + ]; 32 33 propagatedBuildInputs = [ 34 linear_operator ··· 39 checkInputs = [ 40 pytestCheckHook 41 ]; 42 + 43 pythonImportsCheck = [ "gpytorch" ]; 44 + 45 disabledTests = [ 46 # AssertionError on number of warnings emitted 47 "test_deprecated_methods"