Skip to content

Commit

Permalink
Merge pull request #54413 from ivegotasthma/package-python-modules
Browse files Browse the repository at this point in the history
Package multiple python modules
  • Loading branch information
dotlambda authored Jan 21, 2019
2 parents 0ad9ad4 + 2a7bcb7 commit e23c5ec
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 0 deletions.
9 changes: 9 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/braintree/default.nix
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 pkgs/development/python-modules/django-cors-headers/default.nix
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 pkgs/development/python-modules/django-rest-auth/default.nix
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 ];
};
}
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 ];
};
}
8 changes: 8 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down Expand Up @@ -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 { };
Expand All @@ -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 { };
Expand Down Expand Up @@ -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 { };
Expand Down

0 comments on commit e23c5ec

Please sign in to comment.