depot/third_party/nixpkgs/pkgs/development/python-modules/takethetime/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

31 lines
663 B
Nix

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