17 buildPythonPackage rec {
18 pname = "craft-archives";
23 src = fetchFromGitHub {
25 repo = "craft-archives";
26 rev = "refs/tags/${version}";
27 hash = "sha256-ZUqMjbOsHwzZyn0NsSTlZTljzagYEirWKEGatXVL43g=";
31 substituteInPlace craft_archives/__init__.py \
32 --replace-fail "dev" "${version}"
34 substituteInPlace pyproject.toml \
35 --replace-fail "setuptools==67.7.2" "setuptools"
43 propagatedBuildInputs = [
51 pythonImportsCheck = [
61 pytestFlagsArray = [ "tests/unit" ];
63 passthru.updateScript = nix-update-script { };
66 description = "A library for handling archives/repositories in Canonical craft applications";
67 homepage = "https://github.com/canonical/craft-archives";
68 changelog = "https://github.com/canonical/craft-archives/releases/tag/${version}";
69 license = lib.licenses.lgpl3Only;
70 maintainers = with lib.maintainers; [ jnsgruk ];
71 platforms = lib.platforms.linux;