2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPythonPackage rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "takethetime";
|
|
|
|
version = "0.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "TakeTheTime";
|
|
|
|
inherit version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-2+MEU6G1lqOPni4/qOGtxa8tv2RsoIN61cIFmhb+L/k=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# all tests are timing dependent
|
|
|
|
doCheck = false;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|