summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-rich/default.nix
blob: 5088dcb8c99039d4b15a18e2c18dbadf7c483e22 (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
52
53
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,

  # dependencies
  django,
  rich,

  # tests
  coverage,
  pytest-django,
  pytest-randomly,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "django-rich";
  version = "2.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "adamchainz";
    repo = "django-rich";
    tag = finalAttrs.version;
    hash = "sha256-Nd787s55ozqiSGdU8/2S3xbPF0rJuLTyvGqs8Fhu3n8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    django
    rich
  ];

  nativeCheckInputs = [
    coverage
    pytest-django
    pytest-randomly
    pytestCheckHook
  ];

  pythonImportsCheck = [ "django_rich" ];

  meta = {
    description = "Extensions for using Rich with Django";
    homepage = "https://github.com/adamchainz/django-rich";
    changelog = "https://github.com/adamchainz/django-rich/blob/${finalAttrs.version}/CHANGELOG.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kilyanni ];
  };
})