Merge pull request #54413 from ivegotasthma/package-python-modules

Package multiple python modules
This commit is contained in:
Robert Schütz 2019-01-21 14:13:06 +01:00 committed by GitHub
commit e23c5ec8f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 130 additions and 0 deletions

View File

@ -1963,6 +1963,15 @@
email = "tkatchev@gmail.com";
name = "Ivan Tkatchev";
};
ivegotasthma = {
email = "ivegotasthma@protonmail.com";
github = "ivegotasthma";
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";

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -262,6 +262,8 @@ in {
boltons = callPackage ../development/python-modules/boltons { };
braintree = callPackage ../development/python-modules/braintree { };
breathe = callPackage ../development/python-modules/breathe { };
brotli = callPackage ../development/python-modules/brotli { };
@ -2230,6 +2232,8 @@ in {
django_contrib_comments = callPackage ../development/python-modules/django_contrib_comments { };
django-cors-headers = callPackage ../development/python-modules/django-cors-headers { };
django-discover-runner = callPackage ../development/python-modules/django-discover-runner { };
django_environ = callPackage ../development/python-modules/django_environ { };
@ -2252,6 +2256,8 @@ in {
django_polymorphic = callPackage ../development/python-modules/django-polymorphic { };
django-rest-auth = callPackage ../development/python-modules/django-rest-auth { };
django-sampledatahelper = callPackage ../development/python-modules/django-sampledatahelper { };
django-sites = callPackage ../development/python-modules/django-sites { };
@ -2289,6 +2295,8 @@ in {
djangorestframework = callPackage ../development/python-modules/djangorestframework { };
djangorestframework-jwt = callPackage ../development/python-modules/djangorestframework-jwt { };
django-raster = callPackage ../development/python-modules/django-raster { };
django_redis = callPackage ../development/python-modules/django_redis { };