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