Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, buildPythonPackage, fetchFromGitHub, nix-update-script, platformdirs, jinja2, overrides, pyyaml, setuptools-scm, pytest-check, pytest-mock, pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "craft-cli"; version = "3.1.2";
pyproject = true;
src = fetchFromGitHub { owner = "canonical"; repo = "craft-cli"; tag = version; hash = "sha256-ryNHl/c8Pg2mGQHE9Dbd0bLU80NyCyxfhd2YQGEBN40="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools==75.2.0" "setuptools" '';
build-system = [ setuptools-scm ];
dependencies = [ jinja2 overrides platformdirs pyyaml ];
pythonImportsCheck = [ "craft_cli" ];
nativeCheckInputs = [ pytest-check pytest-mock pytestCheckHook writableTmpDirAsHomeHook ];
enabledTestPaths = [ "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; };}