at 24.11-pre 1.5 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 fetchpatch, 8 poetry-core, 9 pytest-aiohttp, 10 pytest-asyncio, 11 pytestCheckHook, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "aioflo"; 17 version = "2021.11.0"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "bachya"; 24 repo = pname; 25 rev = version; 26 hash = "sha256-7NrOoc1gi8YzZaKvCnHnzAKPlMnMhqxjdyZGN5H/8TQ="; 27 }; 28 29 patches = [ 30 # This patch removes references to setuptools and wheel that are no longer 31 # necessary and changes poetry to poetry-core, so that we don't need to add 32 # unnecessary nativeBuildInputs. 33 # 34 # https://github.com/bachya/aioflo/pull/65 35 # 36 (fetchpatch { 37 name = "clean-up-build-dependencies.patch"; 38 url = "https://github.com/bachya/aioflo/commit/f38d3f6427777ab0eeb56177943679e2570f0634.patch"; 39 hash = "sha256-iLgklhEZ61rrdzQoO6rp1HGZcqLsqGNitwIiPNLNHQ4="; 40 }) 41 ]; 42 43 nativeBuildInputs = [ poetry-core ]; 44 45 propagatedBuildInputs = [ aiohttp ]; 46 47 __darwinAllowLocalNetworking = true; 48 49 nativeCheckInputs = [ 50 aresponses 51 pytest-aiohttp 52 pytest-asyncio 53 pytestCheckHook 54 ]; 55 56 pythonImportsCheck = [ "aioflo" ]; 57 58 meta = with lib; { 59 description = "Python library for Flo by Moen Smart Water Detectors"; 60 homepage = "https://github.com/bachya/aioflo"; 61 license = with licenses; [ mit ]; 62 maintainers = with maintainers; [ fab ]; 63 }; 64}