Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 paho-mqtt, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pyeconet"; 13 version = "0.1.22"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "w1ll1am23"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-R6PA/i35vo253J4yowe2fPRZEqStAqmm98k81KDHLQk="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ 28 paho-mqtt 29 aiohttp 30 ]; 31 32 # Tests require credentials 33 doCheck = false; 34 35 pythonImportsCheck = [ "pyeconet" ]; 36 37 meta = with lib; { 38 description = "Python interface to the EcoNet API"; 39 homepage = "https://github.com/w1ll1am23/pyeconet"; 40 changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/v${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}