Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 72 lines
Nix
at gcc-offload
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ lib, buildPythonPackage, fetchFromGitHub, nix-update-script, launchpadlib, lazr-restfulclient, lazr-uri, overrides, pydantic, python-debian, distro, setuptools-scm, pytest-check, pytest-mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "craft-archives"; version = "2.0.2";
pyproject = true;
src = fetchFromGitHub { owner = "canonical"; repo = "craft-archives"; rev = "refs/tags/${version}"; hash = "sha256-1HEz4d1WLQDDHga7X+V/37n8E7JK/k0z+UDeNEiLOHs="; };
postPatch = '' substituteInPlace craft_archives/__init__.py \ --replace-fail "dev" "${version}"
substituteInPlace pyproject.toml \ --replace-fail "setuptools==67.7.2" "setuptools" '';
build-system = [ setuptools-scm ];
dependencies = [ distro launchpadlib lazr-restfulclient lazr-uri overrides pydantic python-debian ];
pythonImportsCheck = [ "craft_archives" ];
nativeCheckInputs = [ pytest-check pytest-mock pytestCheckHook ];
pytestFlagsArray = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };
meta = { description = "Library for handling archives/repositories in Canonical craft applications"; homepage = "https://github.com/canonical/craft-archives"; changelog = "https://github.com/canonical/craft-archives/releases/tag/${version}"; license = lib.licenses.lgpl3Only; maintainers = with lib.maintainers; [ jnsgruk ]; platforms = lib.platforms.linux; };}