at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 django, 12 djangorestframework, 13 ujson, 14 15 # tests 16 pytest-cov-stub, 17 pytest-django, 18 pytest-mock, 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "drf-ujson2"; 24 version = "1.8.0"; 25 pyproject = true; 26 27 disabled = pythonOlder "3.10"; 28 29 src = fetchFromGitHub { 30 owner = "Amertz08"; 31 repo = "drf_ujson2"; 32 tag = "v${version}"; 33 hash = "sha256-NtloZWsEmRbPl7pdxPQqpzIzTyyOEFO9KtZ60F7VuUQ="; 34 }; 35 36 build-system = [ setuptools ]; 37 38 dependencies = [ 39 django 40 djangorestframework 41 ujson 42 ]; 43 44 env.DJANGO_SETTINGS_MODULE = "tests.settings"; 45 46 nativeCheckInputs = [ 47 pytest-cov-stub 48 pytest-django 49 pytest-mock 50 pytestCheckHook 51 ]; 52 53 meta = with lib; { 54 changelog = "https://github.com/Amertz08/drf_ujson2/releases/tag/v${version}"; 55 description = "JSON parser and renderer using ujson for Django Rest Framework"; 56 homepage = "https://github.com/Amertz08/drf_ujson2"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ hexa ]; 59 }; 60}