Skip to content

Commit 7a4c8e8

Browse files
authored
python313Packages.drf-ujson2: 1.7.2 -> 1.8.0 (NixOS#381331)
2 parents 7811100 + 712f6ff commit 7a4c8e8

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

pkgs/by-name/pr/pretix/package.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ python.pkgs.buildPythonApplication rec {
8383
pythonRelaxDeps = [
8484
"django-phonenumber-field"
8585
"dnspython"
86+
"drf_ujson2"
8687
"importlib-metadata"
8788
"kombu"
8889
"markdown"

pkgs/development/python-modules/drf-ujson2/default.nix

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,49 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5+
pythonOlder,
6+
7+
# build-system
8+
setuptools,
59

610
# dependencies
711
django,
812
djangorestframework,
913
ujson,
1014

1115
# tests
16+
pytest-cov-stub,
1217
pytest-django,
1318
pytest-mock,
1419
pytestCheckHook,
1520
}:
1621

1722
buildPythonPackage rec {
1823
pname = "drf-ujson2";
19-
version = "1.7.2";
20-
format = "setuptools";
24+
version = "1.8.0";
25+
pyproject = true;
26+
27+
disabled = pythonOlder "3.10";
2128

2229
src = fetchFromGitHub {
2330
owner = "Amertz08";
2431
repo = "drf_ujson2";
2532
tag = "v${version}";
26-
hash = "sha256-kbpZN1zOXHvRPcn+Sjbelq74cWgvCUeMXZy1eFSa6rA=";
33+
hash = "sha256-NtloZWsEmRbPl7pdxPQqpzIzTyyOEFO9KtZ60F7VuUQ=";
2734
};
2835

29-
postPatch = ''
30-
sed -i '/--cov/d' setup.cfg
31-
'';
32-
33-
buildInputs = [ django ];
36+
build-system = [ setuptools ];
3437

35-
propagatedBuildInputs = [
38+
dependencies = [
39+
django
3640
djangorestframework
3741
ujson
3842
];
3943

4044
env.DJANGO_SETTINGS_MODULE = "tests.settings";
4145

4246
nativeCheckInputs = [
47+
pytest-cov-stub
4348
pytest-django
4449
pytest-mock
4550
pytestCheckHook
@@ -49,6 +54,7 @@ buildPythonPackage rec {
4954
changelog = "https://github.com/Amertz08/drf_ujson2/releases/tag/v${version}";
5055
description = "JSON parser and renderer using ujson for Django Rest Framework";
5156
homepage = "https://github.com/Amertz08/drf_ujson2";
57+
license = licenses.mit;
5258
maintainers = with maintainers; [ hexa ];
5359
};
5460
}

0 commit comments

Comments
 (0)