2018-10-28 15:12:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-16 20:56:22 +01:00
|
|
|
, isPy27
|
2018-10-28 15:12:03 +00:00
|
|
|
, dateutil
|
|
|
|
, six
|
|
|
|
, mock
|
|
|
|
, nose
|
2019-06-09 11:25:38 +01:00
|
|
|
, pytest
|
2018-10-28 15:12:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "freezegun";
|
2020-05-09 11:01:48 +01:00
|
|
|
version = "0.3.15";
|
2018-10-28 15:12:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:48 +01:00
|
|
|
sha256 = "e2062f2c7f95cc276a834c22f1a17179467176b624cc6f936e8bc3be5535ad1b";
|
2018-10-28 15:12:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ dateutil six ];
|
2019-06-09 11:25:38 +01:00
|
|
|
checkInputs = [ mock nose pytest ];
|
2020-06-16 20:56:22 +01:00
|
|
|
# contains python3 specific code
|
|
|
|
doCheck = !isPy27;
|
2018-10-28 15:12:03 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "FreezeGun: Let your Python tests travel through time";
|
|
|
|
homepage = "https://github.com/spulec/freezegun";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|