2018-10-28 15:12:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, 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";
|
2019-05-30 07:49:50 +01:00
|
|
|
version = "0.3.12";
|
2018-10-28 15:12:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-30 07:49:50 +01:00
|
|
|
sha256 = "2a4d9c8cd3c04a201e20c313caf8b6338f1cfa4cda43f46a94cc4a9fd13ea5e7";
|
2018-10-28 15:12:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ dateutil six ];
|
2019-06-09 11:25:38 +01:00
|
|
|
checkInputs = [ mock nose pytest ];
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|