mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
64 lines
974 B
Nix
64 lines
974 B
Nix
{ 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.5.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6aba721f4db411be8f5ffe89acbaa174fe46425e15edf32ed7bfdfafb6ec1eb4";
|
|
};
|
|
|
|
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/;
|
|
license = licenses.mit;
|
|
};
|
|
} |