evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / craft-store / default.nix
blobf9f8f73e8eb0482f98dfd6e91cebf21a8a68ce6c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   nix-update-script,
6   setuptools,
7   setuptools-scm,
8   pytest-check,
9   pytest-mock,
10   pydantic,
11   pyyaml,
12   pytestCheckHook,
13   keyring_24,
14   macaroonbakery,
15   overrides,
16   pyxdg,
17   requests,
18   requests-toolbelt,
21 buildPythonPackage rec {
22   pname = "craft-store";
23   version = "3.0.2";
25   pyproject = true;
27   src = fetchFromGitHub {
28     owner = "canonical";
29     repo = "craft-store";
30     rev = "refs/tags/${version}";
31     hash = "sha256-l8WnuaMJN4/nZRkWoU6omgbd4hKR2m7YC+YVcvAqzcA=";
32   };
34   postPatch = ''
35     substituteInPlace pyproject.toml \
36       --replace-fail "setuptools==" "setuptools>="
37   '';
39   build-system = [ setuptools-scm ];
41   dependencies = [
42     keyring_24
43     macaroonbakery
44     overrides
45     pydantic
46     pyxdg
47     requests
48     requests-toolbelt
49   ];
51   pythonRelaxDeps = [ "macaroonbakery" ];
53   pythonImportsCheck = [ "craft_store" ];
55   nativeCheckInputs = [
56     pydantic
57     pytest-check
58     pytest-mock
59     pytestCheckHook
60     pyyaml
61   ];
63   pytestFlagsArray = [ "tests/unit" ];
65   passthru.updateScript = nix-update-script { };
67   meta = {
68     description = "Interfaces for communicating with Canonical Stores (e.g. Snap Store)";
69     homepage = "https://github.com/canonical/craft-store";
70     changelog = "https://github.com/canonical/craft-store/releases/tag/${version}";
71     license = lib.licenses.lgpl3Only;
72     maintainers = with lib.maintainers; [ jnsgruk ];
73     platforms = lib.platforms.linux;
74   };