depot/third_party/nixpkgs/pkgs/development/python-modules/schedule/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

31 lines
750 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, mock
}:
buildPythonPackage rec {
pname = "schedule";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "e6ca13585e62c810e13a08682e0a6a8ad245372e376ba2b8679294f377dfc8e4";
};
buildInputs = [ mock ];
preCheck = ''
# https://github.com/dbader/schedule/issues/488
substituteInPlace test_schedule.py --replace \
"self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))" \
"# self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))"
'';
meta = with lib; {
description = "Python job scheduling for humans";
homepage = "https://github.com/dbader/schedule";
license = licenses.mit;
};
}