Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 728 B view raw
1{ 2 lib, 3 buildPythonApplication, 4 fetchPypi, 5 pythonOlder, 6 requests, 7 setuptools, 8}: 9 10buildPythonApplication rec { 11 pname = "apc-temp-fetch"; 12 version = "0.0.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 pname = "APC-Temp-fetch"; 19 inherit version; 20 hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo="; 21 }; 22 23 build-system = [ 24 setuptools 25 ]; 26 27 dependencies = [ 28 requests 29 ]; 30 31 pythonImportsCheck = [ 32 "APC_Temp_fetch" 33 ]; 34 35 meta = with lib; { 36 description = "Unified temperature fetcher interface to several UPS network adapters"; 37 homepage = "https://github.com/YZITE/APC_Temp_fetch"; 38 license = licenses.asl20; 39 maintainers = [ ]; 40 }; 41}