Unverified Commit a8dfb681 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.django-flags: init at 5.2.0 (#500984)

parents e5c33758 5bbf2557
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  django,
  django-debug-toolbar,
  fetchFromGitHub,
  jinja2,
  lib,
  pytest-django,
  pytestCheckHook,
  setuptools-scm,
}:
buildPythonPackage (finalAttrs: {
  pname = "django-flags";
  version = "5.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "cfpb";
    repo = "django-flags";
    tag = finalAttrs.version;
    hash = "sha256-4UOueNXfDouTqpLpG391zcGHTTJ8GfznYmEl33YKdv8=";
  };

  build-system = [
    setuptools-scm
  ];

  dependencies = [
    django
  ];

  preCheck = ''
    export DJANGO_SETTINGS_MODULE=flags.tests.settings
  '';

  pythonImportsCheck = [ "flags" ];

  nativeCheckInputs = [
    django-debug-toolbar
    jinja2
    pytest-django
    pytestCheckHook
  ];

  meta = {
    description = "Feature flags for Django projects";
    homepage = "https://github.com/cfpb/django-flags";
    changelog = "https://github.com/cfpb/django-flags/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.cc0;
    maintainers = with lib.maintainers; [ kurogeek ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -4184,6 +4184,8 @@ self: super: with self; {
  django-filter = callPackage ../development/python-modules/django-filter { };
  django-flags = callPackage ../development/python-modules/django-flags { };
  django-formset-js-improved =
    callPackage ../development/python-modules/django-formset-js-improved
      { };