ps3-disc-dumper: 3.2.3 -> 4.2.5, .NET 6 -> 9 (#361506)
[NixPkgs.git] / pkgs / development / python-modules / aiowithings / default.nix
blob5ac72882a13da8a180b5e545b03e2746f74b02c8
2   lib,
3   aiohttp,
4   aioresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   poetry-core,
8   pytest-asyncio,
9   pytestCheckHook,
10   pythonOlder,
11   syrupy,
12   yarl,
15 buildPythonPackage rec {
16   pname = "aiowithings";
17   version = "3.1.3";
18   pyproject = true;
20   disabled = pythonOlder "3.11";
22   src = fetchFromGitHub {
23     owner = "joostlek";
24     repo = "python-withings";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-QHf2UOEU4623Htlaekk7AQldlZOYVQzmqDfHhaMzglI=";
27   };
29   postPatch = ''
30     substituteInPlace pyproject.toml \
31       --replace "--cov" ""
32   '';
34   build-system = [ poetry-core ];
36   dependencies = [
37     aiohttp
38     yarl
39   ];
41   nativeCheckInputs = [
42     aioresponses
43     pytest-asyncio
44     pytestCheckHook
45     syrupy
46   ];
48   pythonImportsCheck = [ "aiowithings" ];
50   pytestFlagsArray = [ "--snapshot-update" ];
52   disabledTests = [
53     # Tests require network access
54     "test_creating_own_session"
55     "test_error_codes"
56     "test_get_activities"
57     "test_get_devices"
58     "test_get_goals"
59     "test_get_measurement"
60     "test_get_new_device"
61     "test_get_sleep_summary"
62     "test_get_sleep"
63     "test_get_workouts"
64     "test_list_all_subscriptions"
65     "test_list_subscriptions"
66     "test_putting_in_own_session"
67     "test_revoking"
68     "test_subscribing"
69     "test_timeout"
70     "test_unexpected_server_response"
71   ];
73   meta = with lib; {
74     description = "Module to interact with Withings";
75     homepage = "https://github.com/joostlek/python-withings";
76     changelog = "https://github.com/joostlek/python-withings/releases/tag/v${version}";
77     license = licenses.mit;
78     maintainers = with maintainers; [ fab ];
79   };