2020-06-25 10:24:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-01-22 12:23:18 +00:00
|
|
|
, isPy27
|
|
|
|
, fetchFromGitHub
|
2020-06-25 10:24:00 +01:00
|
|
|
, freezegun
|
|
|
|
, pytest
|
2021-01-22 12:23:18 +00:00
|
|
|
, pytestCheckHook
|
2020-06-25 10:24:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-freezegun";
|
2020-07-31 09:56:45 +01:00
|
|
|
version = "0.4.2";
|
2020-06-25 10:24:00 +01:00
|
|
|
|
2021-01-22 12:23:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ktosiek";
|
|
|
|
repo = "pytest-freezegun";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas";
|
2020-06-25 10:24:00 +01:00
|
|
|
};
|
|
|
|
|
2021-03-13 00:05:06 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
2020-06-25 10:24:00 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
freezegun
|
|
|
|
];
|
|
|
|
|
2021-01-22 12:23:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-06-25 10:24:00 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Wrap tests with fixtures in freeze_time";
|
|
|
|
homepage = "https://github.com/ktosiek/pytest-freezegun";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|