ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / schedule / default.nix
blob4aad4dc1abd4ef7ec8e1f787cb4e9792fb48523d
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , mock
5 }:
7 buildPythonPackage rec {
8   pname = "schedule";
9   version = "1.1.0";
11   src = fetchPypi {
12     inherit pname version;
13     sha256 = "e6ca13585e62c810e13a08682e0a6a8ad245372e376ba2b8679294f377dfc8e4";
14   };
16   buildInputs = [ mock ];
18   preCheck = ''
19     # https://github.com/dbader/schedule/issues/488
20     substituteInPlace test_schedule.py --replace \
21       "self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))" \
22       "# self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))"
23   '';
25   meta = with lib; {
26     description = "Python job scheduling for humans";
27     homepage = "https://github.com/dbader/schedule";
28     license = licenses.mit;
29   };