diff options
author | Zak B. Elep <zakame@zakame.net> | 2021-10-13 23:15:26 +0800 |
---|---|---|
committer | Zak B. Elep <zakame@zakame.net> | 2021-10-14 12:07:25 +0800 |
commit | bc17a53990e9b98ba31b1dd1fbd36426674ce962 (patch) | |
tree | c9b2525177043c8af3199d9aed686ba2f66f9981 /pkgs/development/python-modules/timecop | |
parent | 222c332c19761c91aabe119681584c7982c27e04 (diff) |
python3Packages.timecop: init at 0.5.0dev
Diffstat (limited to 'pkgs/development/python-modules/timecop')
-rw-r--r-- | pkgs/development/python-modules/timecop/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/timecop/default.nix b/pkgs/development/python-modules/timecop/default.nix new file mode 100644 index 0000000000000..272657dfaafdf --- /dev/null +++ b/pkgs/development/python-modules/timecop/default.nix @@ -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 ]; + }; +} |