aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix
new file mode 100644
index 00000000000..424d8fde232
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix
@@ -0,0 +1,29 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, freezegun
+, pytest
+}:
+
+buildPythonPackage rec {
+ pname = "pytest-freezegun";
+ version = "0.4.2";
+
+ src = fetchPypi {
+ inherit pname version;
+ extension = "zip";
+ sha256 = "19c82d5633751bf3ec92caa481fb5cffaac1787bd485f0df6436fd6242176949";
+ };
+
+ propagatedBuildInputs = [
+ freezegun
+ pytest
+ ];
+
+ meta = with lib; {
+ description = "Wrap tests with fixtures in freeze_time";
+ homepage = "https://github.com/ktosiek/pytest-freezegun";
+ license = licenses.mit;
+ maintainers = [ maintainers.mic92 ];
+ };
+}