My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/schedule/default.nix

31 lines
750 B

{ 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;
};
}