summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorRyan Burns <52847440+r-burns@users.noreply.github.com>2021-10-13 21:16:38 -0700
committerGitHub <noreply@github.com>2021-10-13 21:16:38 -0700
commita8a57d623be4ca4334398230e0e6f1ed73d46b06 (patch)
treebaafb4d3ffbe7d5f698342c0f5c7cad151d12b67 /pkgs
parentc88983cef41819c6c35f2baa3e748223add33402 (diff)
parentbc17a53990e9b98ba31b1dd1fbd36426674ce962 (diff)
Merge pull request #141524 from zakame/contrib/python3-timecop
python3Packages.timecop: init at 0.5.0dev
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/timecop/default.nix23
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 25 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 000000000000..272657dfaafd
--- /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 ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 10f2bbca0928..aca66777eea8 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -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 { };