18 buildPythonPackage rec {
19 pname = "craft-archives";
24 src = fetchFromGitHub {
26 repo = "craft-archives";
27 rev = "refs/tags/${version}";
28 hash = "sha256-BrKyOdfbwt9qU5Bt/kX/+GgxH7LCFmmFg4mevBWVp2I=";
32 substituteInPlace craft_archives/__init__.py \
33 --replace-fail "dev" "${version}"
35 substituteInPlace pyproject.toml \
36 --replace-fail "setuptools==67.7.2" "setuptools"
39 build-system = [ setuptools-scm ];
49 pythonImportsCheck = [ "craft_archives" ];
57 pytestFlagsArray = [ "tests/unit" ];
59 passthru.updateScript = nix-update-script { };
62 description = "Library for handling archives/repositories in Canonical craft applications";
63 homepage = "https://github.com/canonical/craft-archives";
64 changelog = "https://github.com/canonical/craft-archives/releases/tag/${version}";
65 license = lib.licenses.lgpl3Only;
66 maintainers = with lib.maintainers; [ jnsgruk ];
67 platforms = lib.platforms.linux;