lol

python3.pkgs.installer: move tests to passthru

While installer is built using bootstrap packages, none of its test
dependencies should be, so we must move out of the derivation.

authored by

Theodore Ni and committed by
Frederik Rietdijk
0d764788 6c85fff3

+21 -4
+21 -4
pkgs/development/python-modules/installer/default.nix
··· 4 4 , fetchFromGitHub 5 5 , pytestCheckHook 6 6 , flit-core 7 + , installer 7 8 , mock 8 9 }: 9 10 ··· 21 22 22 23 nativeBuildInputs = [ flit-core ]; 23 24 24 - nativeCheckInputs = [ 25 - pytestCheckHook 26 - mock 27 - ]; 25 + # We need to disable tests because this package is part of the bootstrap chain 26 + # and its test dependencies cannot be built yet when this is being built. 27 + doCheck = false; 28 + 29 + passthru.tests = { 30 + pytest = buildPythonPackage { 31 + pname = "${pname}-pytest"; 32 + inherit version; 33 + format = "other"; 34 + 35 + dontBuild = true; 36 + dontInstall = true; 37 + 38 + nativeCheckInputs = [ 39 + installer 40 + mock 41 + pytestCheckHook 42 + ]; 43 + }; 44 + }; 28 45 29 46 meta = with lib; { 30 47 description = "A low-level library for installing a Python package from a wheel distribution";