git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #121825 from dotlambda/drf-jwt-init

pythonPackages.drf-jwt: init at 1.19.0

commit68f959ddef16c8c85234bb83435256bd0e0b868b authorRobert Schütz <dev@schuetz-co.de> dateFri 21 May 2021, 20:33 (5 years ago) parent26b8f682aa6bce
12 files changed+56−49
maintainers/maintainer-list.nix−10 pkgs/development/python-modules/braintree/default.nix+1−1 pkgs/development/python-modules/coreapi/default.nix+1−1 pkgs/development/python-modules/coreschema/default.nix+1−1 pkgs/development/python-modules/django-anymail/default.nix+1−1 pkgs/development/python-modules/django-cors-headers/default.nix+1−1 pkgs/development/python-modules/django-rest-auth/default.nix+1−1 pkgs/development/python-modules/djangorestframework-jwt/default.nix−30 pkgs/development/python-modules/drf-jwt/default.nix+45 pkgs/development/python-modules/drf-yasg/default.nix+1−1 pkgs/development/python-modules/itypes/default.nix+1−1 pkgs/top-level/python-packages.nix+3−1
maintainers/maintainer-list.nix−10
@@ -4375,16 +4375,6 @@
43754375 githubId = 41924494;
43764376 name = "Ivar";
43774377 };
4378− ivegotasthma = {
4379− email = "ivegotasthma@protonmail.com";
4380− github = "ivegotasthma";
4381− githubId = 2437675;
4382− name = "John Doe";
4383− keys = [{
4384− longkeyid = "rsa4096/09AC52AEA87817A4";
4385− fingerprint = "4008 2A5B 56A4 79B9 83CB 95FD 09AC 52AE A878 17A4";
4386− }];
4387− };
43884378 ixmatus = {
43894379 email = "parnell@digitalmentat.com";
43904380 github = "ixmatus";
pkgs/development/python-modules/braintree/default.nix+1−1
@@ -22,6 +22,6 @@ buildPythonPackage rec {
2222 description = "Python library for integration with Braintree";
2323 homepage = "https://github.com/braintree/braintree_python";
2424 license = licenses.mit;
25− maintainers = [ maintainers.ivegotasthma ];
25+ maintainers = with maintainers; [ ];
2626 };
2727}
pkgs/development/python-modules/coreapi/default.nix+1−1
@@ -39,6 +39,6 @@ buildPythonPackage rec {
3939 description = "Python client library for Core API";
4040 homepage = "https://github.com/core-api/python-client";
4141 license = licenses.bsd3;
42− maintainers = with maintainers; [ ivegotasthma ];
42+ maintainers = with maintainers; [ ];
4343 };
4444}
pkgs/development/python-modules/coreschema/default.nix+1−1
@@ -29,6 +29,6 @@ buildPythonPackage rec {
2929 description = "Python client library for Core Schema";
3030 homepage = "https://github.com/ivegotasthma/python-coreschema";
3131 license = licenses.bsd3;
32− maintainers = with maintainers; [ ivegotasthma ];
32+ maintainers = with maintainers; [ ];
3333 };
3434}
pkgs/development/python-modules/django-anymail/default.nix+1−1
@@ -42,6 +42,6 @@ buildPythonPackage rec {
4242 description = "Django email backends and webhooks for Mailgun";
4343 homepage = "https://github.com/anymail/django-anymail";
4444 license = licenses.bsd3;
45− maintainers = with maintainers; [ ivegotasthma ];
45+ maintainers = with maintainers; [ ];
4646 };
4747}
pkgs/development/python-modules/django-cors-headers/default.nix+1−1
@@ -30,6 +30,6 @@ buildPythonPackage rec {
3030 description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
3131 homepage = "https://github.com/OttoYiu/django-cors-headers";
3232 license = licenses.mit;
33− maintainers = [ maintainers.ivegotasthma ];
33+ maintainers = with maintainers; [ ];
3434 };
3535}
pkgs/development/python-modules/django-rest-auth/default.nix+1−1
@@ -24,6 +24,6 @@ buildPythonPackage rec {
2424 description = "Django app that makes registration and authentication easy";
2525 homepage = "https://github.com/Tivix/django-rest-auth";
2626 license = licenses.mit;
27− maintainers = [ maintainers.ivegotasthma ];
27+ maintainers = with maintainers; [ ];
2828 };
2929}
pkgs/development/python-modules/djangorestframework-jwt/default.nixdeleted−30
@@ -1,30 +0,0 @@
1−{ lib
2−, fetchPypi
3−, django
4−, pyjwt
5−, djangorestframework
6−, buildPythonPackage
7−}:
8−
9−buildPythonPackage rec {
10− pname = "djangorestframework-jwt";
11− version = "1.11.0";
12−
13− src = fetchPypi {
14− inherit pname version;
15− sha256 = "19rng6v1sw14mbjp5cplnrgxjnhlj8faalfw02iihi9s5w1k7zjy";
16− };
17−
18− propagatedBuildInputs = [ pyjwt django djangorestframework ];
19−
20− # ./runtests.py fails because the project must be tested against a django
21− # installation, there are missing database tables for User, that don't exist.
22− doCheck = false;
23−
24− meta = with lib; {
25− description = "JSON Web Token Authentication support for Django REST Framework";
26− homepage = "https://github.com/GetBlimp/django-rest-framework-jwt";
27− license = licenses.mit;
28− maintainers = [ maintainers.ivegotasthma ];
29− };
30−}
pkgs/development/python-modules/drf-jwt/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pyjwt
5+, djangorestframework
6+, pytestCheckHook
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "drf-jwt";
11+ version = "1.19.0";
12+
13+ src = fetchFromGitHub {
14+ owner = "Styria-Digital";
15+ repo = "django-rest-framework-jwt";
16+ rev = version;
17+ sha256 = "012rmm25w5gvkzi4lyyhn47y1n6g68q9gasga2mkv9i6mn8n4kp7";
18+ };
19+
20+ propagatedBuildInputs = [
21+ pyjwt
22+ djangorestframework
23+ ];
24+
25+ # requires setting up a django instance
26+ doCheck = false;
27+
28+ pythonImportsCheck = [
29+ "rest_framework_jwt"
30+ "rest_framework_jwt.blacklist"
31+ # require setting DJANGO_SETTINGS_MODULE
32+ # "rest_framework_jwt.authentication"
33+ # "rest_framework_jwt.blacklist.views"
34+ # "rest_framework_jwt.settings"
35+ # "rest_framework_jwt.utils"
36+ # "rest_framework_jwt.views"
37+ ];
38+
39+ meta = with lib; {
40+ description = "JSON Web Token based authentication for Django REST framework";
41+ homepage = "https://github.com/Styria-Digital/django-rest-framework-jwt";
42+ license = licenses.mit;
43+ maintainers = with maintainers; [ dotlambda ];
44+ };
45+}
pkgs/development/python-modules/drf-yasg/default.nix+1−1
@@ -52,7 +52,7 @@ buildPythonPackage rec {
5252 meta = with lib; {
5353 description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
5454 homepage = "https://github.com/axnsan12/drf-yasg";
55− maintainers = with maintainers; [ ivegotasthma ];
55+ maintainers = with maintainers; [ ];
5656 license = licenses.bsd3;
5757 };
5858}
pkgs/development/python-modules/itypes/default.nix+1−1
@@ -26,6 +26,6 @@ buildPythonPackage rec {
2626 description = "Simple immutable types for python";
2727 homepage = "https://github.com/tomchristie/itypes";
2828 license = licenses.bsd3;
29− maintainers = with maintainers; [ ivegotasthma ];
29+ maintainers = with maintainers; [ ];
3030 };
3131}
pkgs/top-level/python-packages.nix+3−1
@@ -1978,7 +1978,7 @@ in {
19781978
19791979 djangorestframework = callPackage ../development/python-modules/djangorestframework { };
19801980
1981− djangorestframework-jwt = callPackage ../development/python-modules/djangorestframework-jwt { };
1981+ djangorestframework-jwt = self.drf-jwt;
19821982
19831983 djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { };
19841984
@@ -2096,6 +2096,8 @@ in {
20962096
20972097 dpkt = callPackage ../development/python-modules/dpkt { };
20982098
2099+ drf-jwt = callPackage ../development/python-modules/drf-jwt { };
2100+
20992101 drf-nested-routers = callPackage ../development/python-modules/drf-nested-routers { };
21002102
21012103 drf-yasg = callPackage ../development/python-modules/drf-yasg { };