Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, click 4, fetchFromGitHub 5, mock 6, pytest-runner 7, pytestCheckHook 8, requests 9, websocket-client 10}: 11 12buildPythonPackage rec { 13 pname = "waterfurnace"; 14 version = "1.1.0"; 15 16 src = fetchFromGitHub { 17 owner = "sdague"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "1ba247fw1fvi7zy31zj2wbjq7fajrbxhp139cl9jj67rfvxfv8xf"; 21 }; 22 23 propagatedBuildInputs = [ 24 click 25 pytest-runner 26 requests 27 websocket-client 28 ]; 29 30 nativeCheckInputs = [ 31 mock 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "waterfurnace" ]; 36 37 meta = with lib; { 38 description = "Python interface to waterfurnace geothermal systems"; 39 homepage = "https://github.com/sdague/waterfurnace"; 40 license = with licenses; [ asl20 ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}