Merge pull request #71262 from worldofpeace/merge-funkwhale-python-packages

Merge funkwhale python packages
This commit is contained in:
worldofpeace 2019-10-16 23:28:46 +00:00 committed by GitHub
commit b75c8ee3bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 467 additions and 11 deletions

View File

@ -4339,6 +4339,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";

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, python, gnugrep }:
{ stdenv, buildPythonPackage, fetchFromGitHub, python, requests, gnugrep }:
let
@ -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.

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, nose
}:
buildPythonPackage rec {
pname = "persisting-theory";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "02hcg7js23yjyw6gwxqzvyv2b1wfjrypk98cfxfgf7s8iz67vzq0";
};
checkInputs = [ nose ];
checkPhase = "nosetests";
meta = with stdenv.lib; {
homepage = https://code.eliotberriot.com/eliotberriot/persisting-theory;
description = "Automate data discovering and access inside a list of packages";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
}:
buildPythonPackage rec {
pname = "pymemoize";
version = "1.0.3";
src = fetchPypi {
inherit version;
pname = "PyMemoize";
sha256 = "0yqr60hm700zph6nv8wb6yp2s0i08mahxvw98bvkmw5ijbsviiq7";
};
checkInputs = [ django ];
# django.core.exceptions.ImproperlyConfigured: Requested settings, 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 = "Simple Python cache and memoizing module";
homepage = "https://github.com/mikeboers/PyMemoize";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}

View File

@ -0,0 +1,32 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, requests
, python
}:
buildPythonPackage rec {
pname = "requests-http-signature";
version = "0.1.0";
# .pem files for tests aren't present on PyPI
src = fetchFromGitHub {
owner = "pyauth";
repo = pname;
rev = "v${version}";
sha256 = "0y96wsbci296m1rcxx0ybx8r44rdvyb59p1jl27p7rgz7isr3kx1";
};
propagatedBuildInputs = [ requests ];
checkPhase = ''
${python.interpreter} test/test.py
'';
meta = with stdenv.lib; {
description = "A Requests auth module for HTTP Signature";
homepage = "https://github.com/kislyuk/requests-http-signature";
license = licenses.asl20;
maintainers = with maintainers; [ mmai ];
};
}

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, six
, unittest2
, unidecode
}:
buildPythonPackage rec {
pname = "unicode-slugify";
version = "0.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "0l7nphfdq9rgiczbl8n3mra9gx7pxap0xz540pkyz034zbz3mkrl";
};
propagatedBuildInputs = [ six unidecode ];
checkInputs = [ nose unittest2 ];
meta = with stdenv.lib; {
description = "Generates unicode slugs";
homepage = "https://pypi.org/project/unicode-slugify/";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}

View File

@ -163,6 +163,8 @@ in {
aioamqp = callPackage ../development/python-modules/aioamqp { };
aioredis = callPackage ../development/python-modules/aioredis { };
ansicolor = callPackage ../development/python-modules/ansicolor { };
ansi2html = callPackage ../development/python-modules/ansi2html { };
@ -471,6 +473,8 @@ in {
chalice = callPackage ../development/python-modules/chalice { };
channels-redis = callPackage ../development/python-modules/channels-redis { };
cleo = callPackage ../development/python-modules/cleo { };
clikit = callPackage ../development/python-modules/clikit { };
@ -2907,10 +2911,14 @@ in {
django_appconf = callPackage ../development/python-modules/django_appconf { };
django-auth-ldap = callPackage ../development/python-modules/django-auth-ldap { };
django_colorful = callPackage ../development/python-modules/django_colorful { };
django-cache-url = callPackage ../development/python-modules/django-cache-url { };
django-cleanup = callPackage ../development/python-modules/django-cleanup { };
django-configurations = callPackage ../development/python-modules/django-configurations { };
django_compressor = callPackage ../development/python-modules/django_compressor { };
@ -2925,12 +2933,16 @@ in {
django-discover-runner = callPackage ../development/python-modules/django-discover-runner { };
django-dynamic-preferences = callPackage ../development/python-modules/django-dynamic-preferences { };
django_environ = callPackage ../development/python-modules/django_environ { };
django_evolution = callPackage ../development/python-modules/django_evolution { };
django_extensions = callPackage ../development/python-modules/django-extensions { };
django-filter = callPackage ../development/python-modules/django-filter { };
django-gravatar2 = callPackage ../development/python-modules/django-gravatar2 { };
django_guardian = callPackage ../development/python-modules/django_guardian { };
@ -2943,6 +2955,8 @@ in {
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
django-oauth-toolkit = callPackage ../development/python-modules/django-oauth-toolkit { };
django-pglocks = callPackage ../development/python-modules/django-pglocks { };
django-picklefield = callPackage ../development/python-modules/django-picklefield { };
@ -2953,6 +2967,10 @@ in {
django-sampledatahelper = callPackage ../development/python-modules/django-sampledatahelper { };
django-storages = callPackage ../development/python-modules/django-storages { };
django-versatileimagefield = callPackage ../development/python-modules/django-versatileimagefield { };
django-sites = callPackage ../development/python-modules/django-sites { };
django-sr = callPackage ../development/python-modules/django-sr { };
@ -3419,6 +3437,8 @@ in {
hetzner = callPackage ../development/python-modules/hetzner { };
hiredis = callPackage ../development/python-modules/hiredis { };
homeassistant-pyozw = callPackage ../development/python-modules/homeassistant-pyozw { };
htmllaundry = callPackage ../development/python-modules/htmllaundry { };
@ -3878,6 +3898,8 @@ in {
neuronpy = callPackage ../development/python-modules/neuronpy { };
persisting-theory = callPackage ../development/python-modules/persisting-theory { };
pint = callPackage ../development/python-modules/pint { };
pygal = callPackage ../development/python-modules/pygal { };
@ -4482,6 +4504,8 @@ in {
pykickstart = callPackage ../development/python-modules/pykickstart { };
pymemoize = callPackage ../development/python-modules/pymemoize { };
pyobjc = if stdenv.isDarwin
then callPackage ../development/python-modules/pyobjc {}
else throw "pyobjc can only be built on Mac OS";
@ -4773,6 +4797,8 @@ in {
readthedocs-sphinx-ext = callPackage ../development/python-modules/readthedocs-sphinx-ext { };
requests-http-signature = callPackage ../development/python-modules/requests-http-signature { };
resampy = callPackage ../development/python-modules/resampy { };
restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { };
@ -5441,6 +5467,8 @@ in {
unicodecsv = callPackage ../development/python-modules/unicodecsv { };
unicode-slugify = callPackage ../development/python-modules/unicode-slugify { };
unidiff = callPackage ../development/python-modules/unidiff { };
units = callPackage ../development/python-modules/units { };