-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54413 from ivegotasthma/package-python-modules
Package multiple python modules
- Loading branch information
Showing
6 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ lib, | ||
fetchPypi, | ||
requests, | ||
buildPythonPackage | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "braintree"; | ||
version = "3.50.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "d1d7a6854b623f2c616451fa474113ac7fb8a2cbeb7dfad36dd3312113484030"; | ||
}; | ||
|
||
propagatedBuildInputs = [ requests ]; | ||
|
||
# pypi release does not include tests | ||
doCheck = false; | ||
|
||
meta = with lib; { | ||
description = "Python library for integration with Braintree"; | ||
homepage = https://github.com/braintree/braintree_python; | ||
license = licenses.mit; | ||
maintainers = [ maintainers.ivegotasthma ]; | ||
}; | ||
} |
27 changes: 27 additions & 0 deletions
27
pkgs/development/python-modules/django-cors-headers/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ lib, | ||
fetchPypi, | ||
django, | ||
buildPythonPackage | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "django-cors-headers"; | ||
version = "2.4.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "1qfa9awsj3f0nwygb0vdh4ilcsfi6zinzng73cd5864x2fbyxhn4"; | ||
}; | ||
|
||
propagatedBuildInputs = [ django ]; | ||
|
||
# pypi release does not include tests | ||
doCheck = false; | ||
|
||
meta = with lib; { | ||
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 ]; | ||
}; | ||
} |
29 changes: 29 additions & 0 deletions
29
pkgs/development/python-modules/django-rest-auth/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ lib, | ||
fetchPypi, | ||
django, | ||
djangorestframework, | ||
six, | ||
buildPythonPackage | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "django-rest-auth"; | ||
version = "0.9.3"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "ad155a0ed1061b32e3e46c9b25686e397644fd6acfd35d5c03bc6b9d2fc6c82a"; | ||
}; | ||
|
||
propagatedBuildInputs = [ django djangorestframework six ]; | ||
|
||
# pypi release does not include tests | ||
doCheck = false; | ||
|
||
meta = with lib; { | ||
description = "Django app that makes registration and authentication easy"; | ||
homepage = https://github.com/Tivix/django-rest-auth; | ||
license = licenses.mit; | ||
maintainers = [ maintainers.ivegotasthma ]; | ||
}; | ||
} |
30 changes: 30 additions & 0 deletions
30
pkgs/development/python-modules/djangorestframework-jwt/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ lib | ||
, fetchPypi | ||
, django | ||
, pyjwt | ||
, djangorestframework | ||
, buildPythonPackage | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "djangorestframework-jwt"; | ||
version = "1.11.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "19rng6v1sw14mbjp5cplnrgxjnhlj8faalfw02iihi9s5w1k7zjy"; | ||
}; | ||
|
||
propagatedBuildInputs = [ pyjwt django djangorestframework ]; | ||
|
||
# ./runtests.py fails because the project must be tested against a django | ||
# installation, there are missing database tables for User, that don't exist. | ||
doCheck = false; | ||
|
||
meta = with lib; { | ||
description = "JSON Web Token Authentication support for Django REST Framework"; | ||
homepage = https://github.com/GetBlimp/django-rest-framework-jwt; | ||
license = licenses.mit; | ||
maintainers = [ maintainers.ivegotasthma ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters