evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / craft-archives / default.nix
blobf401b5fb529430b1996679d7c5abf9c8800cf41f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   nix-update-script,
6   launchpadlib,
7   lazr-restfulclient,
8   overrides,
9   pydantic,
10   setuptools,
11   setuptools-scm,
12   tabulate,
13   pytest-check,
14   pytest-mock,
15   pytestCheckHook,
18 buildPythonPackage rec {
19   pname = "craft-archives";
20   version = "2.0.0";
22   pyproject = true;
24   src = fetchFromGitHub {
25     owner = "canonical";
26     repo = "craft-archives";
27     rev = "refs/tags/${version}";
28     hash = "sha256-BrKyOdfbwt9qU5Bt/kX/+GgxH7LCFmmFg4mevBWVp2I=";
29   };
31   postPatch = ''
32     substituteInPlace craft_archives/__init__.py \
33       --replace-fail "dev" "${version}"
35     substituteInPlace pyproject.toml \
36       --replace-fail "setuptools==67.7.2" "setuptools"
37   '';
39   build-system = [ setuptools-scm ];
41   dependencies = [
42     launchpadlib
43     lazr-restfulclient
44     overrides
45     pydantic
46     tabulate
47   ];
49   pythonImportsCheck = [ "craft_archives" ];
51   nativeCheckInputs = [
52     pytest-check
53     pytest-mock
54     pytestCheckHook
55   ];
57   pytestFlagsArray = [ "tests/unit" ];
59   passthru.updateScript = nix-update-script { };
61   meta = {
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;
68   };