Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiowithings / default.nix
blob46dfafb2ad75276015f45554eb766d1188d07f56
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
10 , syrupy
11 , yarl
14 buildPythonPackage rec {
15   pname = "aiowithings";
16   version = "2.1.0";
17   pyproject = true;
19   disabled = pythonOlder "3.11";
21   src = fetchFromGitHub {
22     owner = "joostlek";
23     repo = "python-withings";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-+pIIVCR+QsW9M3pH9Ss3dMvkeKM1OdhQ1y+s/T6pHtk=";
26   };
28   postPatch = ''
29     substituteInPlace pyproject.toml \
30       --replace "--cov" ""
31   '';
33   nativeBuildInputs = [
34     poetry-core
35   ];
37   propagatedBuildInputs = [
38     aiohttp
39     yarl
40   ];
42   nativeCheckInputs = [
43     aioresponses
44     pytest-asyncio
45     pytestCheckHook
46     syrupy
47   ];
49   pythonImportsCheck = [
50     "aiowithings"
51   ];
53   meta = with lib; {
54     description = "Module to interact with Withings";
55     homepage = "https://github.com/joostlek/python-withings";
56     changelog = "https://github.com/joostlek/python-withings/releases/tag/v${version}";
57     license = licenses.mit;
58     maintainers = with maintainers; [ fab ];
59   };