summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-autocomplete-light/default.nix
blob: c30212213c71e1032ac361235826342aadc81544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  django-taggit,
  django,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "django-autocomplete-light";
  version = "3.12.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "yourlabs";
    repo = "django-autocomplete-light";
    tag = finalAttrs.version;
    hash = "sha256-ctNbbmTUgrkLGCo7tgPIJpLn7RmkZSuj54/5RBe/sdA=";
  };

  build-system = [ setuptools ];

  dependencies = [ django ];

  optional-dependencies = {
    tags = [ django-taggit ];
    # nested = [ django-nested-admin ];
    # genericm2m = [ django-generic-m2m ];
    # gfk = [ django-querysetsequence ];
  };

  # Too many un-packaged dependencies
  doCheck = false;

  pythonImportsCheck = [ "dal" ];

  meta = {
    description = "Fresh approach to autocomplete implementations, specially for Django";
    homepage = "https://django-autocomplete-light.readthedocs.io";
    changelog = "https://github.com/yourlabs/django-autocomplete-light/blob/${finalAttrs.version}/CHANGELOG";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ambroisie ];
  };
})