Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiotankerkoenig / default.nix
blob5915fdd6beb158053829c2fc1bddfd48ea02d715
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , mashumaro
7 , orjson
8 , poetry-core
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
12 , syrupy
13 , yarl
16 buildPythonPackage rec {
17   pname = "aiotankerkoenig";
18   version = "0.4.1";
19   pyproject = true;
21   disabled = pythonOlder "3.11";
23   src = fetchFromGitHub {
24     owner = "jpbede";
25     repo = "aiotankerkoenig";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-BB1Cy4Aji5m06LlNj03as4CWF8RcYKAYy4oxPomOP68=";
28   };
30   postPatch = ''
31     substituteInPlace pyproject.toml \
32       --replace-fail "--cov" ""
33   '';
35   nativeBuildInputs = [
36     poetry-core
37   ];
39   propagatedBuildInputs = [
40     aiohttp
41     mashumaro
42     orjson
43     yarl
44   ];
46   nativeCheckInputs = [
47     aioresponses
48     pytest-asyncio
49     pytestCheckHook
50     syrupy
51   ];
53   pythonImportsCheck = [
54     "aiotankerkoenig"
55   ];
57   meta = with lib; {
58     description = "Python module for interacting with tankerkoenig.de";
59     homepage = "https://github.com/jpbede/aiotankerkoenig";
60     changelog = "https://github.com/jpbede/aiotankerkoenig/releases/tag/v${version}";
61     license = licenses.mit;
62     maintainers = with maintainers; [ fab ];
63   };