summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-organizations/default.nix
blob: 54835ce3d366f4832d761ce2d0ba4f2205ffd227 (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
47
48
49
50
51
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  django,
  django-extensions,
  pytest-django,
  pytestCheckHook,
  mock,
  mock-django,
  django-autoslug,
}:

buildPythonPackage rec {
  pname = "django-organizations";
  version = "2.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bennylope";
    repo = "django-organizations";
    tag = version;
    hash = "sha256-lgri6CCITp1oYCwpH8vrUglphXOmwZ3KX5G/L29akrs=";
  };

  build-system = [ hatchling ];

  dependencies = [
    django
    django-extensions
  ];

  nativeCheckInputs = [
    pytest-django
    pytestCheckHook
    mock
    mock-django
    django-autoslug
  ];

  pythonImportsCheck = [ "organizations" ];

  meta = {
    description = "Multi-user accounts for Django projects";
    homepage = "https://github.com/bennylope/django-organizations";
    changelog = "https://github.com/bennylope/django-organizations/blob/${version}/HISTORY.rst";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ defelo ];
  };
}