Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 80 lines 1.7 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-asyncio, 9 pytestCheckHook, 10 pythonOlder, 11 syrupy, 12 yarl, 13}: 14 15buildPythonPackage rec { 16 pname = "aiowithings"; 17 version = "3.1.4"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.11"; 21 22 src = fetchFromGitHub { 23 owner = "joostlek"; 24 repo = "python-withings"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-0UWwiLSTXcNDS30NWsKI1f/kTczdYXwRZr+JREU0NCM="; 27 }; 28 29 postPatch = '' 30 substituteInPlace pyproject.toml \ 31 --replace "--cov" "" 32 ''; 33 34 build-system = [ poetry-core ]; 35 36 dependencies = [ 37 aiohttp 38 yarl 39 ]; 40 41 nativeCheckInputs = [ 42 aioresponses 43 pytest-asyncio 44 pytestCheckHook 45 syrupy 46 ]; 47 48 pythonImportsCheck = [ "aiowithings" ]; 49 50 pytestFlagsArray = [ "--snapshot-update" ]; 51 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 ]; 72 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 }; 80}