15 buildPythonPackage rec {
21 src = fetchFromGitHub {
24 rev = "refs/tags/${version}";
25 hash = "sha256-yEKF04OPu4paRrghAP78r9hu6cqkUy6z/V7cHNys82I=";
29 substituteInPlace craft_cli/__init__.py \
30 --replace-fail "dev" "${version}"
32 substituteInPlace pyproject.toml \
33 --replace-fail "setuptools==67.7.2" "setuptools"
41 propagatedBuildInputs = [
47 pythonImportsCheck = [
57 pytestFlagsArray = [ "tests/unit" ];
59 passthru.updateScript = nix-update-script { };
62 description = "A CLI builder for Canonical's CLI Guidelines";
63 homepage = "https://github.com/canonical/craft-cli";
64 changelog = "https://github.com/canonical/craft-cli/releases/tag/${version}";
65 license = lib.licenses.lgpl3Only;
66 maintainers = with lib.maintainers; [ jnsgruk ];
67 platforms = lib.platforms.linux;