Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 78 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchPypi, pythonOlder,
# runtime editables, packaging, pathspec, pluggy, tomli, trove-classifiers,
# tests build, python, requests, virtualenv,}:
buildPythonPackage rec { pname = "hatchling"; version = "1.27.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-lxwpbZgZq7OBERL8UsepdRyNOBiY82Uzuxb5eR6UH9Y="; };
# listed in backend/pyproject.toml dependencies = [ editables packaging pathspec pluggy trove-classifiers ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
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${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ofek ]; };}