summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/takethetime/default.nix
blob: d54247e2a4d13ebbd75bce5905ad057e7d45095a (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
}:

buildPythonPackage rec {
  pname = "takethetime";
  version = "0.3.1";
  format = "setuptools";

  src = fetchPypi {
    pname = "TakeTheTime";
    inherit version;
    hash = "sha256-2+MEU6G1lqOPni4/qOGtxa8tv2RsoIN61cIFmhb+L/k=";
  };

  # all tests are timing dependent
  doCheck = false;

  pythonImportsCheck = [ "takethetime" ];

  meta = {
    description = "Simple time taking library using context managers";
    homepage = "https://github.com/ErikBjare/TakeTheTime";
    maintainers = with lib.maintainers; [ huantian ];
    license = lib.licenses.mit;
  };
}