3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/freezegun/default.nix

35 lines
676 B
Nix
Raw Normal View History

{ lib, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
, isPy27
, dateutil
, six
, mock
, nose
2019-06-09 11:25:38 +01:00
, pytest
}:
buildPythonPackage rec {
pname = "freezegun";
version = "1.0.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1cf08e441f913ff5e59b19cc065a8faa9dd1ddc442eaf0375294f344581a0643";
};
propagatedBuildInputs = [ dateutil six ];
2019-06-09 11:25:38 +01:00
checkInputs = [ mock nose pytest ];
# contains python3 specific code
doCheck = !isPy27;
meta = with lib; {
description = "FreezeGun: Let your Python tests travel through time";
homepage = "https://github.com/spulec/freezegun";
license = licenses.asl20;
};
}