···44, fetchFromGitHub
55, pytestCheckHook
66, flit-core
77+, installer
78, mock
89}:
910···21222223 nativeBuildInputs = [ flit-core ];
23242424- nativeCheckInputs = [
2525- pytestCheckHook
2626- mock
2727- ];
2525+ # We need to disable tests because this package is part of the bootstrap chain
2626+ # and its test dependencies cannot be built yet when this is being built.
2727+ doCheck = false;
2828+2929+ passthru.tests = {
3030+ pytest = buildPythonPackage {
3131+ pname = "${pname}-pytest";
3232+ inherit version;
3333+ format = "other";
3434+3535+ dontBuild = true;
3636+ dontInstall = true;
3737+3838+ nativeCheckInputs = [
3939+ installer
4040+ mock
4141+ pytestCheckHook
4242+ ];
4343+ };
4444+ };
28452946 meta = with lib; {
3047 description = "A low-level library for installing a Python package from a wheel distribution";