Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 53 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 pythonOlder, 6 fetchFromGitHub, 7 netifaces, 8 pycryptodome, 9 pytest-asyncio, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "greeclimate"; 15 version = "1.4.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "cmroche"; 22 repo = "greeclimate"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-M4oxFi/PpqhJgZX/wM+9rSrraIZcqzubbxnihfK0W2E="; 25 }; 26 27 propagatedBuildInputs = [ 28 netifaces 29 pycryptodome 30 ]; 31 32 nativeCheckInputs = [ 33 pytest-asyncio 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "greeclimate" 39 "greeclimate.device" 40 "greeclimate.discovery" 41 "greeclimate.exceptions" 42 "greeclimate.network" 43 ]; 44 45 meta = with lib; { 46 broken = stdenv.isDarwin; 47 description = "Discover, connect and control Gree based minisplit systems"; 48 homepage = "https://github.com/cmroche/greeclimate"; 49 changelog = "https://github.com/cmroche/greeclimate/blob/${src.rev}/CHANGELOG.md"; 50 license = licenses.gpl3Only; 51 maintainers = with maintainers; [ dotlambda ]; 52 }; 53}