diff options
Diffstat (limited to 'pkgs/development/python-modules/craft-application/default.nix')
-rw-r--r-- | pkgs/development/python-modules/craft-application/default.nix | 60 |
1 files changed, 32 insertions, 28 deletions
diff --git a/pkgs/development/python-modules/craft-application/default.nix b/pkgs/development/python-modules/craft-application/default.nix index 0b90ccdff058b..61699d21d6aed 100644 --- a/pkgs/development/python-modules/craft-application/default.nix +++ b/pkgs/development/python-modules/craft-application/default.nix @@ -1,40 +1,42 @@ { lib, + stdenv, buildPythonPackage, - fetchFromGitHub, - nix-update-script, - git, craft-archives, craft-cli, craft-grammar, craft-parts, craft-providers, + fetchFromGitHub, + git, + hypothesis, + nix-update-script, pydantic-yaml-0, - pyyaml, - setuptools, - setuptools-scm, - snap-helpers, - stdenv, - pygit2, pyfakefs, - pytestCheckHook, + pygit2, pytest-check, pytest-mock, + pytestCheckHook, + pythonOlder, + pyyaml, responses, - hypothesis, + setuptools-scm, + setuptools, + snap-helpers, }: buildPythonPackage rec { pname = "craft-application"; - version = "2.5.0"; - + version = "2.6.3"; pyproject = true; + disabled = pythonOlder "3.10"; + src = fetchFromGitHub { owner = "canonical"; repo = "craft-application"; rev = "refs/tags/${version}"; - hash = "sha256-66Ldo88DJ6v0+ekvDl++eDzhdn95yxq0SMdzQxTGl5k="; + hash = "sha256-ZhZoR8O5oxcF8+zzihiIbiC/j3AkDL7AjaJSlZ0N48s="; }; postPatch = '' @@ -45,12 +47,12 @@ buildPythonPackage rec { --replace-fail "setuptools==69.4.0" "setuptools" ''; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm ]; - propagatedBuildInputs = [ + dependencies = [ craft-archives craft-cli craft-grammar @@ -62,8 +64,6 @@ buildPythonPackage rec { snap-helpers ]; - pythonImportsCheck = [ "craft_application" ]; - nativeCheckInputs = [ git hypothesis @@ -88,18 +88,22 @@ buildPythonPackage rec { --replace-fail "os_utils.OsRelease()" "os_utils.OsRelease(os_release_file='$HOME/os-release')" ''; + pythonImportsCheck = [ "craft_application" ]; + pytestFlagsArray = [ "tests/unit" ]; - disabledTests = [ - "test_to_yaml_file" - # Tests expecting pytest-time - "test_monitor_builds_success" - ] ++ lib.optionals stdenv.isAarch64 [ - # These tests have hardcoded "amd64" strings which fail on aarch64 - "test_process_grammar_build_for" - "test_process_grammar_platform" - "test_process_grammar_default" - ]; + disabledTests = + [ + "test_to_yaml_file" + # Tests expecting pytest-time + "test_monitor_builds_success" + ] + ++ lib.optionals stdenv.isAarch64 [ + # These tests have hardcoded "amd64" strings which fail on aarch64 + "test_process_grammar_build_for" + "test_process_grammar_platform" + "test_process_grammar_default" + ]; passthru.updateScript = nix-update-script { }; |