Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / takethetime / default.nix
blob7bc914ed85db24f957a81203ddc2a4a34ab04837
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 }:
7 buildPythonPackage rec {
8   pname = "takethetime";
9   version = "0.3.1";
11   src = fetchPypi {
12     pname = "TakeTheTime";
13     inherit version;
14     sha256 = "sha256-2+MEU6G1lqOPni4/qOGtxa8tv2RsoIN61cIFmhb+L/k=";
15   };
17   disabled = pythonOlder "3.6";
19   # all tests are timing dependent
20   doCheck = false;
22   pythonImportsCheck = [ "takethetime" ];
24   meta = with lib; {
25     description = "Simple time taking library using context managers";
26     homepage = "https://github.com/ErikBjare/TakeTheTime";
27     maintainers = with maintainers; [ huantian ];
28     license = licenses.mit;
29   };