2021-01-24 10:47:55 +00:00
|
|
|
{ lib
|
2018-10-28 15:12:03 +00:00
|
|
|
, buildPythonPackage
|
2020-12-01 16:12:03 +00:00
|
|
|
, pythonOlder
|
2018-10-28 15:12:03 +00:00
|
|
|
, fetchPypi
|
|
|
|
, dateutil
|
2021-01-24 10:47:55 +00:00
|
|
|
, pytestCheckHook
|
2018-10-28 15:12:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "freezegun";
|
2021-01-24 10:47:55 +00:00
|
|
|
version = "1.1.0";
|
2020-12-01 16:12:03 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-10-28 15:12:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-24 10:47:55 +00:00
|
|
|
sha256 = "177f9dd59861d871e27a484c3332f35a6e3f5d14626f2bf91be37891f18927f3";
|
2018-10-28 15:12:03 +00:00
|
|
|
};
|
|
|
|
|
2021-01-24 10:47:55 +00:00
|
|
|
propagatedBuildInputs = [ dateutil ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-10-28 15:12:03 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-28 15:12:03 +00:00
|
|
|
description = "FreezeGun: Let your Python tests travel through time";
|
|
|
|
homepage = "https://github.com/spulec/freezegun";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|