python310Packages.drf-ujson2: init at 1.7.2
This commit is contained in:
parent
3a6716ccb9
commit
38e83e4404
55
pkgs/development/python-modules/drf-ujson2/default.nix
Normal file
55
pkgs/development/python-modules/drf-ujson2/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# dependencies
|
||||
, django
|
||||
, djangorestframework
|
||||
, ujson
|
||||
|
||||
# tests
|
||||
, pytest-django
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-ujson2";
|
||||
version = "1.7.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Amertz08";
|
||||
repo = "drf_ujson2";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-kbpZN1zOXHvRPcn+Sjbelq74cWgvCUeMXZy1eFSa6rA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
djangorestframework
|
||||
ujson
|
||||
];
|
||||
|
||||
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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";
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -2949,6 +2949,8 @@ self: super: with self; {
|
||||
|
||||
drf-spectacular-sidecar = callPackage ../development/python-modules/drf-spectacular-sidecar { };
|
||||
|
||||
drf-ujson2 = callPackage ../development/python-modules/drf-ujson2 { };
|
||||
|
||||
drf-writable-nested = callPackage ../development/python-modules/drf-writable-nested { };
|
||||
|
||||
drf-yasg = callPackage ../development/python-modules/drf-yasg { };
|
||||
|
Loading…
Reference in New Issue
Block a user