depot/third_party/nixpkgs/pkgs/development/python-modules/django-dynamic-preferences/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

52 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# dependencies
, django
, persisting-theory
, six
# tests
, djangorestframework
, pytest-django
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "django-dynamic-preferences";
version = "1.15.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "agateblue";
repo = "django-dynamic-preferences";
rev = "refs/tags/${version}";
hash = "sha256-S0PAlSrMOQ68mX548pZzARfau/lytXWC4S5uVO1rUmo=";
};
buildInputs = [
django
];
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;
maintainers = with maintainers; [ mmai ];
};
}