Merge pull request #226349 from DerDennisOP/django-scheduler

python3.pkgs.django-scheduler: init at 0.10.1
This commit is contained in:
Sandro 2023-04-18 17:11:26 +02:00 committed by GitHub
commit d9ff986949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -2709,10 +2709,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 { };