python3.pkgs.django-scheduler: init at 0.10.1

This commit is contained in:
Dennis Wuitz 2023-04-15 22:08:52 +02:00
parent 5922955359
commit e4a9fe6cb2
2 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, django
, fetchFromGitHub
, icalendar
, pytest
, pytest-django
, python
, python-dateutil
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "django-scheduler";
version = "0.10.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "llazzaro";
repo = "django-scheduler";
rev = "refs/tags/${version}";
hash = "sha256-dY2TPo15RRWrv7LheUNJSQl4d/HeptSMM/wQirRSI5w=";
};
propagatedBuildInputs = [
django
python-dateutil
pytz
icalendar
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m django check --settings=tests.settings
runHook postCheck
'';
pythonImportsCheck = [
"schedule"
];
meta = with lib; {
description = "A calendar app for Django";
homepage = "https://github.com/llazzaro/django-scheduler";
changelog = "https://github.com/llazzaro/django-scheduler/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ derdennisop ];
};
}

View File

@ -2703,10 +2703,12 @@ self: super: with self; {
django-q = callPackage ../development/python-modules/django-q { };
django-scopes = callPackage ../development/python-modules/django-scopes { };
django-scheduler = callPackage ../development/python-modules/django-scheduler { };
django-scim2 = callPackage ../development/python-modules/django-scim2 { };
django-scopes = callPackage ../development/python-modules/django-scopes { };
djangoql = callPackage ../development/python-modules/djangoql { };
django-ranged-response = callPackage ../development/python-modules/django-ranged-response { };