/pkgs/development/python-modules/APScheduler/default.nix

https://github.com/NixOS/nixpkgs-channels · Nix · 64 lines · 56 code · 8 blank · 0 comment · 0 complexity · 38dae064085fcb7c78d181c1e5efabcf MD5 · raw file

  1. { lib
  2. , buildPythonPackage
  3. , fetchPypi
  4. , setuptools_scm
  5. , pytest
  6. , pytestcov
  7. , sqlalchemy
  8. , tornado
  9. , twisted
  10. , mock
  11. , trollius
  12. , gevent
  13. , six
  14. , pytz
  15. , tzlocal
  16. , funcsigs
  17. , futures
  18. , isPy3k
  19. }:
  20. buildPythonPackage rec {
  21. pname = "APScheduler";
  22. version = "3.6.3";
  23. src = fetchPypi {
  24. inherit pname version;
  25. sha256 = "3bb5229eed6fbbdafc13ce962712ae66e175aa214c69bed35a06bffcf0c5e244";
  26. };
  27. buildInputs = [
  28. setuptools_scm
  29. ];
  30. checkInputs = [
  31. pytest
  32. pytestcov
  33. sqlalchemy
  34. tornado
  35. twisted
  36. mock
  37. trollius
  38. gevent
  39. ];
  40. propagatedBuildInputs = [
  41. six
  42. pytz
  43. tzlocal
  44. funcsigs
  45. ] ++ lib.optional (!isPy3k) futures;
  46. checkPhase = ''
  47. py.test
  48. '';
  49. # Somehow it cannot find pytestcov
  50. doCheck = false;
  51. meta = with lib; {
  52. description = "A Python library that lets you schedule your Python code to be executed";
  53. homepage = "https://pypi.python.org/pypi/APScheduler/";
  54. license = licenses.mit;
  55. };
  56. }