2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-12-02 00:40:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, dateutil
|
|
|
|
, six
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "freezegun";
|
|
|
|
version = "0.3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "02ly89wwn0plcw8clkkzvxaw6zlpm8qyqpm9x2mfw4a0vppb4ngf";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ dateutil six ];
|
|
|
|
checkInputs = [ mock nose pytest ];
|
|
|
|
# contains python3 specific code
|
|
|
|
doCheck = !isPy27;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-02 00:40:51 +00:00
|
|
|
description = "FreezeGun: Let your Python tests travel through time";
|
|
|
|
homepage = "https://github.com/spulec/freezegun";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|