19 buildPythonPackage rec {
20 pname = "craft-archives";
25 src = fetchFromGitHub {
27 repo = "craft-archives";
28 rev = "refs/tags/${version}";
29 hash = "sha256-1HEz4d1WLQDDHga7X+V/37n8E7JK/k0z+UDeNEiLOHs=";
33 substituteInPlace craft_archives/__init__.py \
34 --replace-fail "dev" "${version}"
36 substituteInPlace pyproject.toml \
37 --replace-fail "setuptools==67.7.2" "setuptools"
40 build-system = [ setuptools-scm ];
52 pythonImportsCheck = [ "craft_archives" ];
60 pytestFlagsArray = [ "tests/unit" ];
62 passthru.updateScript = nix-update-script { };
65 description = "Library for handling archives/repositories in Canonical craft applications";
66 homepage = "https://github.com/canonical/craft-archives";
67 changelog = "https://github.com/canonical/craft-archives/releases/tag/${version}";
68 license = lib.licenses.lgpl3Only;
69 maintainers = with lib.maintainers; [ jnsgruk ];
70 platforms = lib.platforms.linux;