9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
30 lines
638 B
Nix
30 lines
638 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "takethetime";
|
|
version = "0.3.1";
|
|
|
|
src = fetchPypi {
|
|
pname = "TakeTheTime";
|
|
inherit version;
|
|
sha256 = "sha256-2+MEU6G1lqOPni4/qOGtxa8tv2RsoIN61cIFmhb+L/k=";
|
|
};
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
# all tests are timing dependent
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "takethetime" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple time taking library using context managers";
|
|
homepage = "https://github.com/ErikBjare/TakeTheTime";
|
|
maintainers = with maintainers; [ huantian ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|