at master 671 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "uptime"; 11 version = "3.0.1"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-fDACVHdbgHzkbj3LzaMKo7miBLnFenrB557m2+OUKXM="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 # Tests are not shipped 24 doCheck = false; 25 26 pythonImportsCheck = [ "uptime" ]; 27 28 meta = with lib; { 29 description = "Cross-platform way to retrieve system uptime and boot time"; 30 homepage = "https://github.com/Cairnarvon/uptime"; 31 license = licenses.bsd2; 32 maintainers = with maintainers; [ rob ]; 33 }; 34}