Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchFromGitHub, nix-update-script, platformdirs, pyyaml, setuptools-scm, pytest-check, pytest-mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "craft-cli"; version = "2.12.0";
pyproject = true;
src = fetchFromGitHub { owner = "canonical"; repo = "craft-cli"; rev = "refs/tags/${version}"; hash = "sha256-edN0eEXBaYDUqSc7Xv22MpG9wkHqI6x1HtRkQ468yH8="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools==75.2.0" "setuptools" '';
build-system = [ setuptools-scm ];
dependencies = [ platformdirs pyyaml ];
pythonImportsCheck = [ "craft_cli" ];
nativeCheckInputs = [ pytest-check pytest-mock pytestCheckHook ];
pytestFlagsArray = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };
meta = { description = "CLI builder for Canonical's CLI Guidelines"; homepage = "https://github.com/canonical/craft-cli"; changelog = "https://github.com/canonical/craft-cli/releases/tag/${version}"; license = lib.licenses.lgpl3Only; maintainers = with lib.maintainers; [ jnsgruk ]; platforms = lib.platforms.linux; };}