2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-12-07 07:45:13 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-12-07 07:45:13 +00:00
|
|
|
, six
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "freezegun";
|
2021-02-19 19:06:45 +00:00
|
|
|
version = "0.3.15";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-19 19:06:45 +00:00
|
|
|
sha256 = "e2062f2c7f95cc276a834c22f1a17179467176b624cc6f936e8bc3be5535ad1b";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil six ];
|
2020-12-07 07:45:13 +00:00
|
|
|
checkInputs = [ mock nose pytest ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-07 07:45:13 +00:00
|
|
|
description = "FreezeGun: Let your Python tests travel through time";
|
|
|
|
homepage = "https://github.com/spulec/freezegun";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|