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-11-29 14:04:28 +00:00
|
|
|
version = "1.0.0";
|
2018-10-28 15:12:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:28 +00:00
|
|
|
sha256 = "1cf08e441f913ff5e59b19cc065a8faa9dd1ddc442eaf0375294f344581a0643";
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|