about summary refs log tree commit diff
path: root/pkgs/development/python-modules/freezegun
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-12-01 16:40:51 -0800
committerJonathan Ringer <jonringer117@gmail.com>2020-12-01 16:40:51 -0800
commit023dafc6b80532fa2df4c50d5fdcb987f00992e0 (patch)
treef4e1a98f6600f85db00ea04a6feb5faba9e88447 /pkgs/development/python-modules/freezegun
parent38ab53776e5399a0f34c604f9e54def4e9fea64b (diff)
pythonPackages.freezegun: pin to 0.3.5
Diffstat (limited to 'pkgs/development/python-modules/freezegun')
-rw-r--r--pkgs/development/python-modules/freezegun/0.3.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/freezegun/0.3.nix b/pkgs/development/python-modules/freezegun/0.3.nix
new file mode 100644
index 0000000000000..219fc180b225e
--- /dev/null
+++ b/pkgs/development/python-modules/freezegun/0.3.nix
@@ -0,0 +1,32 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, isPy27
+, dateutil
+, six
+, mock
+, nose
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "freezegun";
+  version = "0.3.5";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "02ly89wwn0plcw8clkkzvxaw6zlpm8qyqpm9x2mfw4a0vppb4ngf";
+  };
+
+  propagatedBuildInputs = [ dateutil six ];
+  checkInputs = [ mock nose pytest ];
+  # contains python3 specific code
+  doCheck = !isPy27;
+
+  meta = with stdenv.lib; {
+    description = "FreezeGun: Let your Python tests travel through time";
+    homepage = "https://github.com/spulec/freezegun";
+    license = licenses.asl20;
+  };
+
+}