biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / autarco / default.nix
blobc6afff489d654fecc1c7962bd282d94721b111b1
2   lib,
3   aiohttp,
4   aresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   mashumaro,
8   orjson,
9   poetry-core,
10   pytest-asyncio,
11   pytest-cov-stub,
12   pytestCheckHook,
13   pythonOlder,
14   syrupy,
15   yarl,
18 buildPythonPackage rec {
19   pname = "autarco";
20   version = "3.0.0";
21   pyproject = true;
23   disabled = pythonOlder "3.11";
25   src = fetchFromGitHub {
26     owner = "klaasnicolaas";
27     repo = "python-autarco";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-7Q6kvJxhds0myu3pMOLSCJKwoGPzHjNSo8H3ctgFvjM=";
30   };
32   pythonRelaxDeps = [ "orjson" ];
34   postPatch = ''
35     # Upstream doesn't set a version for the pyproject.toml
36     substituteInPlace pyproject.toml \
37       --replace-fail "0.0.0" "${version}"
38   '';
40   build-system = [ poetry-core ];
42   dependencies = [
43     aiohttp
44     mashumaro
45     orjson
46     yarl
47   ];
49   __darwinAllowLocalNetworking = true;
51   nativeCheckInputs = [
52     aresponses
53     pytest-asyncio
54     pytest-cov-stub
55     pytestCheckHook
56     syrupy
57   ];
59   pythonImportsCheck = [ "autarco" ];
61   meta = with lib; {
62     description = "Module for the Autarco Inverter";
63     homepage = "https://github.com/klaasnicolaas/python-autarco";
64     changelog = "https://github.com/klaasnicolaas/python-autarco/releases/tag/v${version}";
65     license = licenses.mit;
66     maintainers = with maintainers; [ fab ];
67   };