diff options
Diffstat (limited to 'pkgs/development/python-modules/craft-application/default.nix')
-rw-r--r-- | pkgs/development/python-modules/craft-application/default.nix | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/craft-application/default.nix b/pkgs/development/python-modules/craft-application/default.nix index d37e4e4063bf2..d51a12f46cb91 100644 --- a/pkgs/development/python-modules/craft-application/default.nix +++ b/pkgs/development/python-modules/craft-application/default.nix @@ -10,24 +10,24 @@ fetchFromGitHub, git, hypothesis, + license-expression, nix-update-script, - pydantic-yaml-0, pyfakefs, pygit2, pytest-check, pytest-mock, + pytest-subprocess, pytestCheckHook, pythonOlder, pyyaml, responses, setuptools-scm, - setuptools, snap-helpers, }: buildPythonPackage rec { pname = "craft-application"; - version = "2.6.3"; + version = "4.2.5"; pyproject = true; disabled = pythonOlder "3.10"; @@ -36,20 +36,19 @@ buildPythonPackage rec { owner = "canonical"; repo = "craft-application"; rev = "refs/tags/${version}"; - hash = "sha256-ZhZoR8O5oxcF8+zzihiIbiC/j3AkDL7AjaJSlZ0N48s="; + hash = "sha256-Y/Eci0ByE1HxUcxWhpQq0F2Ef1xkXZMBDGmUSIyPKII="; }; postPatch = '' - substituteInPlace craft_application/__init__.py \ - --replace-fail "dev" "${version}" - substituteInPlace pyproject.toml \ - --replace-fail "setuptools==69.4.0" "setuptools" + --replace-fail "setuptools==74.1.1" "setuptools" ''; - build-system = [ - setuptools - setuptools-scm + build-system = [ setuptools-scm ]; + + pythonRelaxDeps = [ + "pygit2" + "requests" ]; dependencies = [ @@ -58,7 +57,7 @@ buildPythonPackage rec { craft-grammar craft-parts craft-providers - pydantic-yaml-0 + license-expression pygit2 pyyaml snap-helpers @@ -70,6 +69,7 @@ buildPythonPackage rec { pyfakefs pytest-check pytest-mock + pytest-subprocess pytestCheckHook responses ]; @@ -98,7 +98,7 @@ buildPythonPackage rec { # Tests expecting pytest-time "test_monitor_builds_success" ] - ++ lib.optionals stdenv.isAarch64 [ + ++ lib.optionals stdenv.hostPlatform.isAarch64 [ # These tests have hardcoded "amd64" strings which fail on aarch64 "test_process_grammar_build_for" "test_process_grammar_platform" @@ -110,7 +110,7 @@ buildPythonPackage rec { meta = { description = "Basis for Canonical craft applications"; homepage = "https://github.com/canonical/craft-application"; - changelog = "https://github.com/canonical/craft-application/releases/tag/${version}"; + changelog = "https://github.com/canonical/craft-application/blob/${src.rev}/docs/reference/changelog.rst"; license = lib.licenses.lgpl3Only; maintainers = with lib.maintainers; [ jnsgruk ]; platforms = lib.platforms.linux; |