1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromBitbucket, 6 freezegun, 7 netifaces, 8 pytest-aiohttp, 9 pytestCheckHook, 10 pythonOlder, 11 urllib3, 12}: 13 14buildPythonPackage rec { 15 pname = "pydaikin"; 16 version = "2.11.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromBitbucket { 22 owner = "mustang51"; 23 repo = pname; 24 rev = "v${version}"; 25 hash = "sha256-IBrd4PH8EzVVVFQtJdJ8bTMLEzfh7MYMe79yuCrhmww="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 netifaces 31 urllib3 32 ]; 33 34 doCheck = false; # tests fail and upstream does not seem to run them either 35 36 nativeCheckInputs = [ 37 freezegun 38 pytest-aiohttp 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "pydaikin" ]; 43 44 meta = with lib; { 45 description = "Python Daikin HVAC appliances interface"; 46 mainProgram = "pydaikin"; 47 homepage = "https://bitbucket.org/mustang51/pydaikin"; 48 license = with licenses; [ gpl3Only ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}