python3Packages.timecop: init at 0.5.0dev

This commit is contained in:
Zak B. Elep 2021-10-13 23:15:26 +08:00
parent 222c332c19
commit bc17a53990
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "timecop";
version = "0.5.0dev";
src = fetchPypi {
inherit pname version;
sha256 = "0zbi58sw2yp1qchzfhyi7bsrwxajiypphg65fir98kvj03g011wd";
};
# test_epoch fails, see https://github.com/bluekelp/pytimecop/issues/4
preCheck = ''
sed -i 's/test_epoch/_test_epoch/' timecop/tests/test_freeze.py
'';
meta = with lib; {
description = "A port of the most excellent TimeCop Ruby Gem for Python";
homepage = "https://github.com/bluekelp/pytimecop";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ zakame ];
};
}

View File

@ -9104,6 +9104,8 @@ in {
timeago = callPackage ../development/python-modules/timeago { };
timecop = callPackage ../development/python-modules/timecop { };
timelib = callPackage ../development/python-modules/timelib { };
time-machine = callPackage ../development/python-modules/time-machine { };