Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchFromGitHub, 6 mock, 7 pytestCheckHook, 8 requests, 9 pythonOlder, 10 websocket-client, 11}: 12 13buildPythonPackage rec { 14 pname = "waterfurnace"; 15 version = "1.1.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "sdague"; 22 repo = "waterfurnace"; 23 tag = "v${version}"; 24 sha256 = "1ba247fw1fvi7zy31zj2wbjq7fajrbxhp139cl9jj67rfvxfv8xf"; 25 }; 26 27 postPatch = '' 28 substituteInPlace setup.py \ 29 --replace "'pytest-runner'," "" 30 ''; 31 32 propagatedBuildInputs = [ 33 click 34 requests 35 websocket-client 36 ]; 37 38 nativeCheckInputs = [ 39 mock 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "waterfurnace" ]; 44 45 meta = with lib; { 46 description = "Python interface to waterfurnace geothermal systems"; 47 mainProgram = "waterfurnace-debug"; 48 homepage = "https://github.com/sdague/waterfurnace"; 49 changelog = "https://github.com/sdague/waterfurnace/blob/v${version}/HISTORY.rst"; 50 license = with licenses; [ asl20 ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}