depot/third_party/nixpkgs/pkgs/development/python-modules/takethetime/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

32 lines
667 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
}:
buildPythonPackage rec {
pname = "takethetime";
version = "0.3.1";
format = "setuptools";
src = fetchPypi {
pname = "TakeTheTime";
inherit version;
hash = "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;
};
}