nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 62 lines 1.2 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 freezegun, 8 netifaces, 9 pytest-asyncio, 10 pytestCheckHook, 11 urllib3, 12 setuptools, 13 tenacity, 14}: 15 16buildPythonPackage (finalAttrs: { 17 pname = "pydaikin"; 18 version = "2.18.1"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "fredrike"; 23 repo = "pydaikin"; 24 tag = "v${finalAttrs.version}"; 25 hash = "sha256-sTcdgbthDAyyWLxPtS344xR8a7UoN+zrfes6FXSo9g4="; 26 }; 27 28 __darwinAllowLocalNetworking = true; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 aiohttp 34 netifaces 35 urllib3 36 tenacity 37 ]; 38 39 nativeCheckInputs = [ 40 aresponses 41 freezegun 42 pytest-asyncio 43 pytestCheckHook 44 ]; 45 46 disabledTests = [ 47 # Failed: async def functions are not natively supported. 48 "test_power_sensors" 49 "test_device_factory" 50 ]; 51 52 pythonImportsCheck = [ "pydaikin" ]; 53 54 meta = { 55 description = "Python Daikin HVAC appliances interface"; 56 homepage = "https://github.com/fredrike/pydaikin"; 57 changelog = "https://github.com/fredrike/pydaikin/releases/tag/${finalAttrs.src.tag}"; 58 license = lib.licenses.gpl3Only; 59 maintainers = with lib.maintainers; [ fab ]; 60 mainProgram = "pydaikin"; 61 }; 62})