Skip to content

Commit

Permalink
python3Packages.django-oauth-toolkit: 2.4.0 -> 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Nov 4, 2024
1 parent db5b007 commit 600199a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions pkgs/development/python-modules/django-oauth-toolkit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,

# propagates
django,
Expand All @@ -18,29 +19,29 @@

buildPythonPackage rec {
pname = "django-oauth-toolkit";
version = "2.4.0";
format = "setuptools";
version = "3.0.1";
pyproject = true;

src = fetchFromGitHub {
owner = "jazzband";
repo = pname;
repo = "django-oauth-toolkit";
rev = "refs/tags/${version}";
hash = "sha256-nfLjjVp+6OsjFdJHUZ2gzZic/E/sCklj+YeFyb/EZdw=";
hash = "sha256-Ya0KlX+vtLXN2Fgk0Gv7KemJCUTwkaH+4GQA1ByUlBY=";
};

postPatch = ''
sed -i '/cov/d' tox.ini
sed -i '/cov/d' pyproject.toml
'';

propagatedBuildInputs = [
build-system = [ setuptools ];

dependencies = [
django
jwcrypto
oauthlib
requests
];

pythonRelaxDeps = [ "django" ];

DJANGO_SETTINGS_MODULE = "tests.settings";

# xdist is disabled right now because it can cause race conditions on high core machines
Expand All @@ -58,10 +59,11 @@ buildPythonPackage rec {
"test_response_when_auth_server_response_return_404"
];

meta = with lib; {
meta = {
description = "OAuth2 goodies for the Djangonauts";
homepage = "https://github.com/jazzband/django-oauth-toolkit";
license = licenses.bsd2;
maintainers = with maintainers; [ mmai ];
changelog = "https://github.com/jazzband/django-oauth-toolkit/django-filer/blob/${version}/CHANGELOG.md";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ mmai ];
};
}

0 comments on commit 600199a

Please sign in to comment.