python313Packages.drf-ujson2: 1.7.2 -> 1.8.0 (#381331)
This commit is contained in:
@@ -83,6 +83,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
pythonRelaxDeps = [
|
||||
"django-phonenumber-field"
|
||||
"dnspython"
|
||||
"drf_ujson2"
|
||||
"importlib-metadata"
|
||||
"kombu"
|
||||
"markdown"
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
django,
|
||||
@@ -9,6 +13,7 @@
|
||||
ujson,
|
||||
|
||||
# tests
|
||||
pytest-cov-stub,
|
||||
pytest-django,
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
@@ -16,23 +21,22 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-ujson2";
|
||||
version = "1.7.2";
|
||||
format = "setuptools";
|
||||
version = "1.8.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Amertz08";
|
||||
repo = "drf_ujson2";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-kbpZN1zOXHvRPcn+Sjbelq74cWgvCUeMXZy1eFSa6rA=";
|
||||
hash = "sha256-NtloZWsEmRbPl7pdxPQqpzIzTyyOEFO9KtZ60F7VuUQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
'';
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [ django ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
django
|
||||
djangorestframework
|
||||
ujson
|
||||
];
|
||||
@@ -40,6 +44,7 @@ buildPythonPackage rec {
|
||||
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-cov-stub
|
||||
pytest-django
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
@@ -49,6 +54,7 @@ buildPythonPackage rec {
|
||||
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 = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user