summary refs log tree commit diff
path: root/pkgs/development/python-modules/APScheduler
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-05-01 09:52:32 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-05-01 10:10:34 +0200
commite2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3 (patch)
tree1db34bd516a9109047e2f2c76571630f09dd7ab2 /pkgs/development/python-modules/APScheduler
parent12caccfe80aeddde7f5baf16e2ef4020a79c6cc5 (diff)
downloadnixlib-e2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3.tar
nixlib-e2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3.tar.gz
nixlib-e2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3.tar.bz2
nixlib-e2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3.tar.lz
nixlib-e2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3.tar.xz
nixlib-e2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3.tar.zst
nixlib-e2bc80ce4984e7f9f52e5f0d8b5bf1fced2856e3.zip
pythonPackages.APScheduler: fix tests
Diffstat (limited to 'pkgs/development/python-modules/APScheduler')
-rw-r--r--pkgs/development/python-modules/APScheduler/default.nix65
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/APScheduler/default.nix b/pkgs/development/python-modules/APScheduler/default.nix
new file mode 100644
index 000000000000..a556aebc47ed
--- /dev/null
+++ b/pkgs/development/python-modules/APScheduler/default.nix
@@ -0,0 +1,65 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, setuptools_scm
+, pytest
+, pytestcov
+, sqlalchemy
+, tornado
+, twisted
+, mock
+, trollius
+, gevent
+, six
+, pytz
+, tzlocal
+, funcsigs
+, futures
+, isPy3k
+}:
+
+buildPythonPackage rec {
+  pname = "APScheduler";
+  version = "3.3.1";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "f68874dff1bdffcc6ce3adb7840c1e4d162c609a3e3f831351df30b75732767b";
+  };
+
+  buildInputs = [
+    setuptools_scm
+  ];
+
+  checkInputs = [
+    pytest
+    pytestcov
+    sqlalchemy
+    tornado
+    twisted
+    mock
+    trollius
+    gevent
+  ];
+
+  propagatedBuildInputs = [
+    six
+    pytz
+    tzlocal
+    funcsigs
+  ] ++ lib.optional (!isPy3k) futures;
+
+  checkPhase = ''
+    py.test
+  '';
+
+  # Somehow it cannot find pytestcov
+  doCheck = false;
+
+  meta = with lib; {
+    description = "A Python library that lets you schedule your Python code to be executed";
+    homepage = http://pypi.python.org/pypi/APScheduler/;
+    license = licenses.mit;
+  };
+}
\ No newline at end of file