Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / schedule / default.nix
blob443b0f73d2df48afe67cc1a302fb2797a173fc8d
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , mock
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "schedule";
10   version = "1.2.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-hDvAU4uZyT8CuLUOPjmIbAby0AOyT0jhqkyt+j80Enk=";
18   };
20   buildInputs = [
21     mock
22   ];
24   preCheck = ''
25     # https://github.com/dbader/schedule/issues/488
26     substituteInPlace test_schedule.py --replace \
27       "self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))" \
28       "# self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))"
29   '';
31   pythonImportsCheck = [
32     "schedule"
33   ];
35   meta = with lib; {
36     description = "Python job scheduling for humans";
37     homepage = "https://github.com/dbader/schedule";
38     changelog = "https://github.com/dbader/schedule/blob/${version}/HISTORY.rst";
39     license = licenses.mit;
40     maintainers = with maintainers; [ ];
41   };