evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / elgato / default.nix
blob40dc9b740c79fa33a3c576c7a1b7e0e1135d1561
2   lib,
3   aiohttp,
4   aresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   mashumaro,
8   orjson,
9   poetry-core,
10   pytest-asyncio,
11   pytestCheckHook,
12   pythonOlder,
13   yarl,
16 buildPythonPackage rec {
17   pname = "elgato";
18   version = "5.1.2";
19   format = "pyproject";
21   disabled = pythonOlder "3.11";
23   src = fetchFromGitHub {
24     owner = "frenck";
25     repo = "python-elgato";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-NAU4tr0oaAPPrOUZYl9WoGOM68MlrBqGewHBIiIv2XY=";
28   };
30   postPatch = ''
31     # Upstream doesn't set a version for the pyproject.toml
32     substituteInPlace pyproject.toml \
33       --replace "0.0.0" "${version}" \
34       --replace "--cov" ""
35   '';
37   nativeBuildInputs = [ poetry-core ];
39   propagatedBuildInputs = [
40     aiohttp
41     mashumaro
42     orjson
43     yarl
44   ];
46   nativeCheckInputs = [
47     aresponses
48     pytest-asyncio
49     pytestCheckHook
50   ];
52   pythonImportsCheck = [ "elgato" ];
54   meta = with lib; {
55     description = "Python client for Elgato Key Lights";
56     homepage = "https://github.com/frenck/python-elgato";
57     changelog = "https://github.com/frenck/python-elgato/releases/tag/v${version}";
58     license = with licenses; [ mit ];
59     maintainers = with maintainers; [ fab ];
60   };