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

65 lines
1006 B
Nix
Raw Normal View History

2017-05-01 08:52:32 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
, pytestcov
, sqlalchemy
, tornado
, twisted
, mock
, trollius
, gevent
, six
, pytz
, tzlocal
, funcsigs
, futures
, isPy3k
}:
buildPythonPackage rec {
pname = "APScheduler";
2018-01-20 10:57:01 +00:00
version = "3.5.1";
2017-05-01 08:52:32 +01:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2018-01-20 10:57:01 +00:00
sha256 = "952c8f46a11f32b9d5bfbe3e347dac2cdf0680d8b4799590dc9c3a9865b73b65";
2017-05-01 08:52:32 +01:00
};
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 = https://pypi.python.org/pypi/APScheduler/;
2017-05-01 08:52:32 +01:00
license = licenses.mit;
};
}