Robert Schütz 2024-07-24 06:36:16 -07:00
parent a8e6c00537
commit 8985b03f5c

View File

@ -27,7 +27,7 @@
buildPythonPackage rec {
pname = "craft-application";
version = "2.8.0";
version = "3.2.0";
pyproject = true;
disabled = pythonOlder "3.10";
@ -36,21 +36,17 @@ buildPythonPackage rec {
owner = "canonical";
repo = "craft-application";
rev = "refs/tags/${version}";
hash = "sha256-COcZgl2XzPWknSKMUZgZBEMzkDdwK2PouIEuWKOP8dc=";
hash = "sha256-2JfCe7FJtuObC/4miA+OC/ctGy1fhdgI7DsowNYjQk8=";
};
postPatch = ''
substituteInPlace craft_application/__init__.py \
--replace-fail "dev" "${version}"
substituteInPlace pyproject.toml \
--replace-fail "setuptools==" "setuptools>="
--replace-fail "setuptools==70.1.0" "setuptools"
'';
build-system = [
setuptools
setuptools-scm
];
build-system = [ setuptools-scm ];
pythonRelaxDeps = [ "requests" ];
dependencies = [
craft-archives
@ -110,7 +106,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;