mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #226997 from mweinelt/django-dynamic-preferences-1.15
python310Packages.django-dynamic-preferences: 1.14.0 -> 1.15.0
This commit is contained in:
commit
57aad37a2e
1 changed files with 36 additions and 9 deletions
|
@ -1,22 +1,49 @@
|
|||
{ lib, buildPythonPackage, fetchPypi
|
||||
, django, persisting-theory, six
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# dependencies
|
||||
, django
|
||||
, persisting-theory
|
||||
, six
|
||||
|
||||
# tests
|
||||
, djangorestframework
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-dynamic-preferences";
|
||||
version = "1.14.0";
|
||||
version = "1.15.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-wAq8uNUkBnOQpmUYz80yaDuHrTzGINWRNkn8dwe4CDM=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "agateblue";
|
||||
repo = "django-dynamic-preferences";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-S0PAlSrMOQ68mX548pZzARfau/lytXWC4S5uVO1rUmo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six django persisting-theory ];
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
# django.core.exceptions.ImproperlyConfigured: Requested setting DYNAMIC_PREFERENCES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
persisting-theory
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
djangorestframework
|
||||
pytestCheckHook
|
||||
pytest-django
|
||||
];
|
||||
|
||||
env.DJANGO_SETTINGS = "tests.settings";
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/agateblue/django-dynamic-preferences/blob/${version}/HISTORY.rst";
|
||||
homepage = "https://github.com/EliotBerriot/django-dynamic-preferences";
|
||||
description = "Dynamic global and instance settings for your django project";
|
||||
license = licenses.bsd3;
|
||||
|
|
Loading…
Reference in a new issue