mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
python3Packages.django-crontab: init at 0.7.1
This commit is contained in:
parent
2b7e21b32c
commit
3c19b6d4c2
52
pkgs/development/python-modules/django-crontab/default.nix
Normal file
52
pkgs/development/python-modules/django-crontab/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, django
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
, pytest-django
|
||||
, mock
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-crontab";
|
||||
version = "0.7.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kraiz";
|
||||
repo = "django-crontab";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-qX+N3SMUyhMWoWluRCeOPGYKCMBnjg61P281HXHkfJk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
django
|
||||
mock
|
||||
nose
|
||||
pytestCheckHook
|
||||
pytest-django
|
||||
];
|
||||
|
||||
# Tests currently fail with: RuntimeError: setup_test_environment() was
|
||||
# already called and can't be called again without first calling
|
||||
# teardown_test_environment()
|
||||
doCheck = false;
|
||||
|
||||
DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
pythonImportsCheck = [ "django_crontab" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple crontab powered job scheduling for Django";
|
||||
homepage = "https://github.com/kraiz/django-crontab";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ onny ];
|
||||
};
|
||||
}
|
@ -2962,6 +2962,8 @@ self: super: with self; {
|
||||
|
||||
django-crispy-forms = callPackage ../development/python-modules/django-crispy-forms { };
|
||||
|
||||
django-crontab = callPackage ../development/python-modules/django-crontab { };
|
||||
|
||||
django-cryptography = callPackage ../development/python-modules/django-cryptography { };
|
||||
|
||||
django-csp = callPackage ../development/python-modules/django-csp { };
|
||||
|
Loading…
Reference in New Issue
Block a user