summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/uptime/default.nix
blob: 66ad3102d05fe831510e0e3877d2cd0bfe466a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "uptime";
  version = "3.0.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-fDACVHdbgHzkbj3LzaMKo7miBLnFenrB557m2+OUKXM=";
  };

  build-system = [ setuptools ];

  # Tests are not shipped
  doCheck = false;

  pythonImportsCheck = [ "uptime" ];

  meta = {
    description = "Cross-platform way to retrieve system uptime and boot time";
    homepage = "https://github.com/Cairnarvon/uptime";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ rob ];
  };
}