Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, asynctest 4, buildPythonPackage 5, fetchFromGitHub 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pymelcloud"; 13 version = "2.11.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "vilppuvuorinen"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "1q6ny58cn9qy86blxbk6l2iklab7y11b734l7yb1bp35dmy27w26"; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 ]; 28 29 nativeCheckInputs = [ 30 asynctest 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "pymelcloud" 37 ]; 38 39 meta = with lib; { 40 description = "Python module for interacting with MELCloud"; 41 homepage = "https://github.com/vilppuvuorinen/pymelcloud"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}