pythonPackages.freezegun: pin to 0.3.5

This commit is contained in:
Jonathan Ringer 2020-12-01 16:40:51 -08:00
parent 38ab53776e
commit 023dafc6b8
2 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,32 @@
{ stdenv
, 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;
meta = with stdenv.lib; {
description = "FreezeGun: Let your Python tests travel through time";
homepage = "https://github.com/spulec/freezegun";
license = licenses.asl20;
};
}

View file

@ -2268,7 +2268,10 @@ in {
freetype-py = callPackage ../development/python-modules/freetype-py { };
freezegun = callPackage ../development/python-modules/freezegun { };
freezegun = if isPy27 then
callPackage ../development/python-modules/freezegun/0.3.nix { }
else
callPackage ../development/python-modules/freezegun { };
fritzconnection = callPackage ../development/python-modules/fritzconnection { };