02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
31 lines
663 B
Nix
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;
|
|
};
|
|
}
|