Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, buildPythonPackage, fetchPypi,
# runtime editables, packaging, pathspec, pluggy, tomlkit, trove-classifiers,
# tests build, python, requests, virtualenv,}:
buildPythonPackage (finalAttrs: { pname = "hatchling"; version = "1.31.0"; pyproject = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-a0itQGikgu1yObOoIVvFW0eq0zRdWN/JTlU8XS1GIRs="; };
# listed in backend/pyproject.toml dependencies = [ editables packaging pathspec pluggy tomlkit trove-classifiers ];
pythonImportsCheck = [ "hatchling" "hatchling.build" ];
# tries to fetch packages from the internet doCheck = false;
# listed in /backend/tests/downstream/requirements.txt nativeCheckInputs = [ build requests virtualenv ];
preCheck = '' export HOME=$(mktemp -d) '';
checkPhase = '' runHook preCheck ${python.interpreter} tests/downstream/integrate.py runHook postCheck '';
meta = { description = "Modern, extensible Python build backend"; mainProgram = "hatchling"; homepage = "https://hatch.pypa.io/latest/"; changelog = "https://github.com/pypa/hatch/releases/tag/hatchling-v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ofek ]; };})