Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4333,6 +4333,12 @@
githubId = 104795;
name = "Marek Mahut";
};
mmai = {
email = "henri.bourcereau@gmail.com";
github = "mmai";
githubId = 117842;
name = "Henri Bourcereau";
};
mmlb = {
email = "me.mmlb@mmlb.me";
github = "mmlb";
Expand Down
16 changes: 9 additions & 7 deletions pkgs/development/python-modules/PyLD/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, python, gnugrep }:
{ stdenv, buildPythonPackage, fetchFromGitHub, python, requests, gnugrep }:

let

Expand All @@ -18,17 +18,19 @@ let

in

buildPythonPackage {
pname = "PyLD";
version = "0.7.2";
buildPythonPackage rec {
pname = "pyld";
version = "1.0.5";

src = fetchFromGitHub {
owner = "digitalbazaar";
repo = "pyld";
rev = "652473f828e9a396d4c1db9addbd294fb7db1797";
sha256 = "1bmpz4s6j7by6l45wwxy7dn7hmrhxc26kbx2hbfy41x29vbjg6j9";
repo = pname;
rev = version;
sha256 = "0z2vkllw8bvzxripwb6l757r7av5qwhzsiy4061gmlhq8z8gq961";
};

propagatedBuildInputs = [ requests ];

# Unfortunately PyLD does not pass all testcases in the JSON-LD corpus. We
# check for at least a minimum amount of successful tests so we know it's not
# getting worse, at least.
Expand Down
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/aioredis/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ stdenv, buildPythonPackage, fetchPypi
, pkgs, async-timeout, hiredis, isPyPy, isPy27
}:

buildPythonPackage rec {
pname = "aioredis";
version = "1.2.0";

disabled = isPy27;

src = fetchPypi {
inherit pname version;
sha256 = "06i53xpz4x6qrmdxqwvkpd17lbgmwfq20v0jrwc73f5y57kjpml4";
};

propagatedBuildInputs = [
async-timeout
] ++ stdenv.lib.optional (!isPyPy) hiredis;

# Wants to run redis-server, hardcoded FHS paths, too much trouble.
doCheck = false;

meta = with stdenv.lib; {
description = "Asyncio (PEP 3156) Redis client library";
homepage = https://github.com/aio-libs/aioredis;
license = licenses.mit;
maintainers = with maintainers; [ mmai ];
};
}
55 changes: 55 additions & 0 deletions pkgs/development/python-modules/channels-redis/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, redis, channels, msgpack, aioredis, hiredis, asgiref
# , fetchFromGitHub, async_generator, async-timeout, cryptography, pytest, pytest-asyncio
}:

buildPythonPackage rec {
pname = "channels-redis";
version = "2.4.0";

disabled = pythonOlder "3.6";

src = fetchPypi {
inherit version;
pname = "channels_redis";
sha256 = "1g4izdf8237pwxn85bv5igc2bajrvck1p2a7q448qmjfznrbrk5p";
};

buildInputs = [ redis hiredis ];

propagatedBuildInputs = [ channels msgpack aioredis asgiref ];

# Fetch from github (no tests files on pypi)
# src = fetchFromGitHub {
# rev = version;
# owner = "django";
# repo = "channels_redis";
# sha256 = "05niaqjv790mnrvca26kbnvb50fgnk2zh0k4np60cn6ilp4nl0kc";
# };
#
# checkInputs = [
# async_generator
# async-timeout
# cryptography
# pytest
# pytest-asyncio
# ];
#
# # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379)
# # (even with a local redis instance running)
# checkPhase = ''
# pytest -p no:django tests/
# '';

postPatch = ''
sed -i "s/msgpack~=0.6.0/msgpack/" setup.py
sed -i "s/aioredis~=1.0/aioredis/" setup.py
'';

meta = with stdenv.lib; {
homepage = https://github.com/django/channels_redis/;
description = "Redis-backed ASGI channel layer implementation";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/channels/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
}:
buildPythonPackage rec {
pname = "channels";
version = "2.2.0";
version = "2.3.0";

src = fetchPypi {
inherit pname version;
sha256 = "af7cdba9efb3f55b939917d1b15defb5d40259936013e60660e5e9aff98db4c5";
sha256 = "0vd2ci1w5r4bhmhk349wclnc289lx14lpwp5k4910m63kywb8nap";
};

# Files are missing in the distribution
Expand Down
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/django-auth-ldap/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi, isPy27
, ldap , django_2_2
, mock
}:

buildPythonPackage rec {
pname = "django-auth-ldap";
version = "2.0.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1samrxf8lic6a4c0lgw31b38s97l8hnaknd7ilyy2plahmm0h03i";
};

propagatedBuildInputs = [ ldap django_2_2 ];
checkInputs = [ mock ];

# django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
doCheck = false;

meta = with stdenv.lib; {
description = "Django authentication backend that authenticates against an LDAP service";
homepage = https://github.com/django-auth-ldap/django-auth-ldap;
license = licenses.bsd2;
maintainers = with maintainers; [ mmai ];
platforms = platforms.linux;
};
}
21 changes: 21 additions & 0 deletions pkgs/development/python-modules/django-cleanup/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi, django
, redis, async-timeout, hiredis
}:

buildPythonPackage rec {
pname = "django-cleanup";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "195hkany3iwg4wb4cbdrdmanxcahjl87n8v03dbamanx2ya3yb21";
};

checkInputs = [ django ];

meta = with stdenv.lib; {
description = "Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion";
homepage = https://github.com/un1t/django-cleanup;
license = licenses.mit;
maintainers = with maintainers; [ mmai ];
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi
, django, persisting-theory, six
}:

buildPythonPackage rec {
pname = "django-dynamic-preferences";
version = "1.7.1";

src = fetchPypi {
inherit pname version;
sha256 = "1z2dndkpypk4pvb0byh5a771vgp50vn8g1rbk5r3sml6dm4wcn7s";
};

propagatedBuildInputs = [ six django persisting-theory ];

# django.core.exceptions.ImproperlyConfigured: Requested setting DYNAMIC_PREFERENCES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
doCheck = false;

meta = with stdenv.lib; {
homepage = https://github.com/EliotBerriot/django-dynamic-preferences;
description = "Dynamic global and instance settings for your django project";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/django-filter/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, djangorestframework, python, mock
}:

buildPythonPackage rec {
pname = "django-filter";
version = "2.2.0";

src = fetchPypi {
inherit pname version;
sha256 = "057xiijig8r2nxrd9gj1nki168422rsh8ap5vkbr9zyp1mzvbpn3";
};

propagatedBuildInputs = [ django ];

# Tests fail (needs the 'crispy_forms' module not packaged on nixos)
doCheck = false;
checkInputs = [ djangorestframework django mock ];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py tests
runHook postCheck
'';

meta = with stdenv.lib; {
description = "Reusable Django application for allowing users to filter querysets dynamically";
homepage = "https://pypi.org/project/django-filter/";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/django-oauth-toolkit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchFromGitHub
, django_2_2, requests, oauthlib
}:

buildPythonPackage rec {
pname = "django-oauth-toolkit";
version = "1.2.0";

src = fetchFromGitHub {
owner = "jazzband";
repo = pname;
rev = version;
sha256 = "1zbksxrcxlqnapmlvx4rgvpqc4plgnq0xnf45cjwzwi1626zs8g6";
};

propagatedBuildInputs = [ django_2_2 requests oauthlib ];

# django.core.exceptions.ImproperlyConfigured: Requested setting OAUTH2_PROVIDER, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
doCheck = false;

meta = with stdenv.lib; {
description = "OAuth2 goodies for the Djangonauts";
homepage = https://github.com/jazzband/django-oauth-toolkit;
license = licenses.bsd2;
maintainers = with maintainers; [ mmai ];
};
}
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/django-storages/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi
, django
}:

buildPythonPackage rec {
pname = "django-storages";
version = "1.7.2";

src = fetchPypi {
inherit pname version;
sha256 = "01xq232h321716r08rari9payas7fsiwwr5q6zgcrlwkckwxxczk";
};

propagatedBuildInputs = [ django ];

# django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
doCheck = false;

meta = with stdenv.lib; {
description = "Collection of custom storage backends for Django";
homepage = https://django-storages.readthedocs.io;
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, python
, pillow
}:

buildPythonPackage rec {
pname = "django-versatileimagefield";
version = "1.10";

src = fetchPypi {
inherit pname version;
sha256 = "0y0r6ssxyg9x1rylpyxg2ha2hl18080k5xp308k4ankpjm50hvc8";
};
propagatedBuildInputs = [ pillow ];

checkInputs = [ django ];

# tests not included with pypi release
doCheck = false;

meta = with stdenv.lib; {
description = "Replaces django's ImageField with a more flexible interface";
homepage = "https://github.com/respondcreate/django-versatileimagefield/";
license = licenses.mit;
maintainers = with maintainers; [ mmai ];
};
}

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv, buildPythonPackage, fetchPypi, django }:
buildPythonPackage rec {
version = "3.9.4";
version = "3.10.3";
pname = "djangorestframework";

src = fetchPypi {
inherit pname version;
sha256 = "c12869cfd83c33d579b17b3cb28a2ae7322a53c3ce85580c2a2ebe4e3f56c4fb";
sha256 = "140hwz52rlqqc10gbw5bhyyi4zbpqj3z7wgnh2jrhs2wfzwwp0fw";
};

# Test settings are missing
Expand Down
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/hiredis/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, redis
, python
}:

buildPythonPackage rec {
pname = "hiredis";
version = "1.0.0";

src = fetchPypi {
inherit pname version;
sha256 = "158pymdlnv4d218w66i8kzdn4ka30l1pdwa0wyjh16bj10zraz79";
};
propagatedBuildInputs = [ redis ];

checkPhase = ''
${python.interpreter} test.py
'';

meta = with stdenv.lib; {
description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
homepage = "https://github.com/redis/hiredis-py";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}

Loading