0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

python3Packages.django-oauth-toolkit: 2.4.0 -> 3.0.1

This commit is contained in:
Jonas Heinrich 2024-11-03 20:38:29 +01:00
parent 4275af2547
commit 039d6ce63a

View file

@ -2,6 +2,7 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
setuptools,
# propagates # propagates
django, django,
@ -18,29 +19,29 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-oauth-toolkit"; pname = "django-oauth-toolkit";
version = "2.4.0"; version = "3.0.1";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jazzband"; owner = "jazzband";
repo = pname; repo = "django-oauth-toolkit";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-nfLjjVp+6OsjFdJHUZ2gzZic/E/sCklj+YeFyb/EZdw="; hash = "sha256-Ya0KlX+vtLXN2Fgk0Gv7KemJCUTwkaH+4GQA1ByUlBY=";
}; };
postPatch = '' postPatch = ''
sed -i '/cov/d' tox.ini sed -i '/cov/d' pyproject.toml
''; '';
propagatedBuildInputs = [ build-system = [ setuptools ];
dependencies = [
django django
jwcrypto jwcrypto
oauthlib oauthlib
requests requests
]; ];
pythonRelaxDeps = [ "django" ];
DJANGO_SETTINGS_MODULE = "tests.settings"; DJANGO_SETTINGS_MODULE = "tests.settings";
# xdist is disabled right now because it can cause race conditions on high core machines # xdist is disabled right now because it can cause race conditions on high core machines
@ -58,10 +59,11 @@ buildPythonPackage rec {
"test_response_when_auth_server_response_return_404" "test_response_when_auth_server_response_return_404"
]; ];
meta = with lib; { meta = {
description = "OAuth2 goodies for the Djangonauts"; description = "OAuth2 goodies for the Djangonauts";
homepage = "https://github.com/jazzband/django-oauth-toolkit"; homepage = "https://github.com/jazzband/django-oauth-toolkit";
license = licenses.bsd2; changelog = "https://github.com/jazzband/django-oauth-toolkit/django-filer/blob/${version}/CHANGELOG.md";
maintainers = with maintainers; [ mmai ]; license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ mmai ];
}; };
} }