Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / elgato / default.nix
blobf17b502826ceb8c6c9d37aef20d743742032a7a6
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , mashumaro
7 , orjson
8 , poetry-core
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
12 , yarl
15 buildPythonPackage rec {
16   pname = "elgato";
17   version = "5.1.2";
18   format = "pyproject";
20   disabled = pythonOlder "3.11";
22   src = fetchFromGitHub {
23     owner = "frenck";
24     repo = "python-elgato";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-NAU4tr0oaAPPrOUZYl9WoGOM68MlrBqGewHBIiIv2XY=";
27   };
29   postPatch = ''
30     # Upstream doesn't set a version for the pyproject.toml
31     substituteInPlace pyproject.toml \
32       --replace "0.0.0" "${version}" \
33       --replace "--cov" ""
34   '';
36   nativeBuildInputs = [
37     poetry-core
38   ];
40   propagatedBuildInputs = [
41     aiohttp
42     mashumaro
43     orjson
44     yarl
45   ];
47   nativeCheckInputs = [
48     aresponses
49     pytest-asyncio
50     pytestCheckHook
51   ];
53   pythonImportsCheck = [
54     "elgato"
55   ];
57   meta = with lib; {
58     description = "Python client for Elgato Key Lights";
59     homepage = "https://github.com/frenck/python-elgato";
60     changelog = "https://github.com/frenck/python-elgato/releases/tag/v${version}";
61     license = with licenses; [ mit ];
62     maintainers = with maintainers; [ fab ];
63   };