Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.8 kB · 115 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116{ lib, stdenv, build, buildPythonPackage, fetchFromGitHub, flit-core, filelock, packaging, pyproject-hooks, pytest-mock, pytest-rerunfailures, pytest-xdist, pytestCheckHook, pythonOlder, setuptools, tomli, virtualenv, wheel,}:
buildPythonPackage rec { pname = "build"; version = "1.2.2.post1"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "pypa"; repo = "build"; rev = "refs/tags/${version}"; hash = "sha256-PHS7CjdKo5u4VTpbo409zLQAOmslV9bX0j0S83Gdv1U="; };
postPatch = '' # not strictly required, causes circular dependency cycle sed -i '/importlib-metadata >= 4.6/d' pyproject.toml '';
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ packaging pyproject-hooks ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
# We need to disable tests because this package is part of the bootstrap chain # and its test dependencies cannot be built yet when this is being built. doCheck = false;
passthru.tests = { pytest = buildPythonPackage { pname = "${pname}-pytest"; inherit src version; format = "other";
dontBuild = true; dontInstall = true;
nativeCheckInputs = [ build filelock pytest-mock pytest-rerunfailures pytest-xdist pytestCheckHook setuptools virtualenv wheel ];
pytestFlagsArray = [ "-W" "ignore::DeprecationWarning" ];
__darwinAllowLocalNetworking = true;
disabledTests = [ # Tests often fail with StopIteration "test_isolat" "test_default_pip_is_never_too_old" "test_build" "test_with_get_requires" "test_init" "test_output" "test_wheel_metadata" # Tests require network access to run pip install "test_verbose_output" "test_requirement_installation" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Expects Apple's Python and its quirks "test_can_get_venv_paths_with_conflicting_default_scheme" ]; }; };
pythonImportsCheck = [ "build" ];
meta = with lib; { mainProgram = "pyproject-build"; description = "Simple, correct PEP517 package builder"; longDescription = '' build will invoke the PEP 517 hooks to build a distribution package. It is a simple build tool and does not perform any dependency management. ''; homepage = "https://github.com/pypa/build"; changelog = "https://github.com/pypa/build/blob/${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = teams.python.members ++ [ maintainers.fab ]; };}