aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix
index 424d8fde2326..e5fbb6bb0707 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-freezegun/default.nix
@@ -1,18 +1,21 @@
{ lib
, buildPythonPackage
-, fetchPypi
+, isPy27
+, fetchFromGitHub
, freezegun
, pytest
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-freezegun";
version = "0.4.2";
- src = fetchPypi {
- inherit pname version;
- extension = "zip";
- sha256 = "19c82d5633751bf3ec92caa481fb5cffaac1787bd485f0df6436fd6242176949";
+ src = fetchFromGitHub {
+ owner = "ktosiek";
+ repo = "pytest-freezegun";
+ rev = version;
+ sha256 = "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas";
};
propagatedBuildInputs = [
@@ -20,6 +23,10 @@ buildPythonPackage rec {
pytest
];
+ checkInputs = [
+ pytestCheckHook
+ ];
+
meta = with lib; {
description = "Wrap tests with fixtures in freeze_time";
homepage = "https://github.com/ktosiek/pytest-freezegun";