blob: 98e5b8bf895f6719fa62732eb951127209993fbf (
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
54
55
56
57
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
django,
djangorestframework,
ujson,
# tests
pytest-cov-stub,
pytest-django,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "drf-ujson2";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Amertz08";
repo = "drf_ujson2";
tag = "v${version}";
hash = "sha256-NtloZWsEmRbPl7pdxPQqpzIzTyyOEFO9KtZ60F7VuUQ=";
};
build-system = [ setuptools ];
dependencies = [
django
djangorestframework
ujson
];
env.DJANGO_SETTINGS_MODULE = "tests.settings";
nativeCheckInputs = [
pytest-cov-stub
pytest-django
pytest-mock
pytestCheckHook
];
meta = {
changelog = "https://github.com/Amertz08/drf_ujson2/releases/tag/v${version}";
description = "JSON parser and renderer using ujson for Django Rest Framework";
homepage = "https://github.com/Amertz08/drf_ujson2";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
|