Files
nixpkgs/pkgs/development/python-modules/django-scheduler/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

52 lines
1.0 KiB
Nix

{
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 = "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 ];
};
}