Skip to content

Commit

Permalink
Merge pull request #121825 from dotlambda/drf-jwt-init
Browse files Browse the repository at this point in the history
pythonPackages.drf-jwt: init at 1.19.0
  • Loading branch information
dotlambda authored May 21, 2021
2 parents 26b8f68 + 2aa6bce commit 68f959d
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 49 deletions.
10 changes: 0 additions & 10 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4375,16 +4375,6 @@
githubId = 41924494;
name = "Ivar";
};
ivegotasthma = {
email = "ivegotasthma@protonmail.com";
github = "ivegotasthma";
githubId = 2437675;
name = "John Doe";
keys = [{
longkeyid = "rsa4096/09AC52AEA87817A4";
fingerprint = "4008 2A5B 56A4 79B9 83CB 95FD 09AC 52AE A878 17A4";
}];
};
ixmatus = {
email = "parnell@digitalmentat.com";
github = "ixmatus";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/braintree/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ buildPythonPackage rec {
description = "Python library for integration with Braintree";
homepage = "https://github.com/braintree/braintree_python";
license = licenses.mit;
maintainers = [ maintainers.ivegotasthma ];
maintainers = with maintainers; [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/coreapi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ buildPythonPackage rec {
description = "Python client library for Core API";
homepage = "https://github.com/core-api/python-client";
license = licenses.bsd3;
maintainers = with maintainers; [ ivegotasthma ];
maintainers = with maintainers; [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/coreschema/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ buildPythonPackage rec {
description = "Python client library for Core Schema";
homepage = "https://github.com/ivegotasthma/python-coreschema";
license = licenses.bsd3;
maintainers = with maintainers; [ ivegotasthma ];
maintainers = with maintainers; [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/django-anymail/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ buildPythonPackage rec {
description = "Django email backends and webhooks for Mailgun";
homepage = "https://github.com/anymail/django-anymail";
license = licenses.bsd3;
maintainers = with maintainers; [ ivegotasthma ];
maintainers = with maintainers; [ ];
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ buildPythonPackage rec {
description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
homepage = "https://github.com/OttoYiu/django-cors-headers";
license = licenses.mit;
maintainers = [ maintainers.ivegotasthma ];
maintainers = with maintainers; [ ];
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ buildPythonPackage rec {
description = "Django app that makes registration and authentication easy";
homepage = "https://github.com/Tivix/django-rest-auth";
license = licenses.mit;
maintainers = [ maintainers.ivegotasthma ];
maintainers = with maintainers; [ ];
};
}

This file was deleted.

45 changes: 45 additions & 0 deletions pkgs/development/python-modules/drf-jwt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyjwt
, djangorestframework
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "drf-jwt";
version = "1.19.0";

src = fetchFromGitHub {
owner = "Styria-Digital";
repo = "django-rest-framework-jwt";
rev = version;
sha256 = "012rmm25w5gvkzi4lyyhn47y1n6g68q9gasga2mkv9i6mn8n4kp7";
};

propagatedBuildInputs = [
pyjwt
djangorestframework
];

# requires setting up a django instance
doCheck = false;

pythonImportsCheck = [
"rest_framework_jwt"
"rest_framework_jwt.blacklist"
# require setting DJANGO_SETTINGS_MODULE
# "rest_framework_jwt.authentication"
# "rest_framework_jwt.blacklist.views"
# "rest_framework_jwt.settings"
# "rest_framework_jwt.utils"
# "rest_framework_jwt.views"
];

meta = with lib; {
description = "JSON Web Token based authentication for Django REST framework";
homepage = "https://github.com/Styria-Digital/django-rest-framework-jwt";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/drf-yasg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
homepage = "https://github.com/axnsan12/drf-yasg";
maintainers = with maintainers; [ ivegotasthma ];
maintainers = with maintainers; [ ];
license = licenses.bsd3;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/itypes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ buildPythonPackage rec {
description = "Simple immutable types for python";
homepage = "https://github.com/tomchristie/itypes";
license = licenses.bsd3;
maintainers = with maintainers; [ ivegotasthma ];
maintainers = with maintainers; [ ];
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1978,7 +1978,7 @@ in {

djangorestframework = callPackage ../development/python-modules/djangorestframework { };

djangorestframework-jwt = callPackage ../development/python-modules/djangorestframework-jwt { };
djangorestframework-jwt = self.drf-jwt;

djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { };

Expand Down Expand Up @@ -2096,6 +2096,8 @@ in {

dpkt = callPackage ../development/python-modules/dpkt { };

drf-jwt = callPackage ../development/python-modules/drf-jwt { };

drf-nested-routers = callPackage ../development/python-modules/drf-nested-routers { };

drf-yasg = callPackage ../development/python-modules/drf-yasg { };
Expand Down

0 comments on commit 68f959d

Please sign in to comment.