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