depot/third_party/nixpkgs/pkgs/development/python-modules/freezegun/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

28 lines
587 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, dateutil
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "freezegun";
version = "1.1.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "177f9dd59861d871e27a484c3332f35a6e3f5d14626f2bf91be37891f18927f3";
};
propagatedBuildInputs = [ dateutil ];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "FreezeGun: Let your Python tests travel through time";
homepage = "https://github.com/spulec/freezegun";
license = licenses.asl20;
};
}