Merge master into staging-next
This commit is contained in:
@@ -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.
|
||||
|
||||
29
pkgs/development/python-modules/aioredis/default.nix
Normal file
29
pkgs/development/python-modules/aioredis/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -17,6 +18,8 @@ buildPythonPackage rec {
|
||||
sha256 = "3c0f73db9f8392f7048c8a244809f154d7c39f354e2167f6c477630aa517ed04";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
stripLen = 2;
|
||||
|
||||
55
pkgs/development/python-modules/channels-redis/default.nix
Normal file
55
pkgs/development/python-modules/channels-redis/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
30
pkgs/development/python-modules/django-auth-ldap/default.nix
Normal file
30
pkgs/development/python-modules/django-auth-ldap/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/django-cleanup/default.nix
Normal file
21
pkgs/development/python-modules/django-cleanup/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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
pkgs/development/python-modules/django-filter/default.nix
Normal file
34
pkgs/development/python-modules/django-filter/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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
pkgs/development/python-modules/django-storages/default.nix
Normal file
25
pkgs/development/python-modules/django-storages/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||
, google_auth, protobuf, googleapis_common_protos, requests, grpcio, futures, mock, pytest }:
|
||||
, google_auth, protobuf, googleapis_common_protos, requests, setuptools, grpcio, futures, mock, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-api-core";
|
||||
@@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
googleapis_common_protos protobuf
|
||||
google_auth requests grpcio
|
||||
google_auth requests setuptools grpcio
|
||||
] ++ lib.optional (pythonOlder "3.2") futures;
|
||||
checkInputs = [ mock pytest ];
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
|
||||
, pytest, mock, oauth2client, flask, requests, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa }:
|
||||
, pytest, mock, oauth2client, flask, requests, setuptools, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-auth";
|
||||
@@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];
|
||||
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa ];
|
||||
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
|
||||
|
||||
# The removed test tests the working together of google_auth and google's https://pypi.python.org/pypi/oauth2client
|
||||
# but the latter is deprecated. Since it is not currently part of the nixpkgs collection and deprecated it will
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, google_api_core, grpcio, pytest, mock }:
|
||||
, google_api_core, grpcio, pytest, mock, setuptools }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-core";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
sha256 = "d85b1aaaf3bad9415ad1d8ee5eadce96d7007a82f13ce0a0629a003a11e83f29";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_api_core grpcio ];
|
||||
propagatedBuildInputs = [ google_api_core grpcio setuptools ];
|
||||
checkInputs = [ pytest mock ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
, google_cloud_core
|
||||
, pytest
|
||||
, mock
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -17,8 +18,13 @@ buildPythonPackage rec {
|
||||
sha256 = "8032e576e2f91a1d3de2355118040c3bcd9916e0453a6b3f64c1b42ed151690a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
google_resumable_media
|
||||
google_api_core
|
||||
google_cloud_core
|
||||
setuptools
|
||||
];
|
||||
checkInputs = [ pytest mock ];
|
||||
propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest tests/unit
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
, fetchPypi
|
||||
, six
|
||||
, requests
|
||||
, setuptools
|
||||
, pytest
|
||||
, mock
|
||||
}:
|
||||
@@ -17,7 +18,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock ];
|
||||
propagatedBuildInputs = [ six requests ];
|
||||
propagatedBuildInputs = [ requests setuptools six ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests/unit
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, protobuf, pytest }:
|
||||
, protobuf, pytest, setuptools }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "googleapis-common-protos";
|
||||
@@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||
sha256 = "d564872083af40bbcc7091340f17db778a316525c7c76497d58d11b98ca2aa74";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ protobuf ];
|
||||
propagatedBuildInputs = [ protobuf setuptools ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
doCheck = false; # there are no tests
|
||||
|
||||
29
pkgs/development/python-modules/hiredis/default.nix
Normal file
29
pkgs/development/python-modules/hiredis/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/pymemoize/default.nix
Normal file
29
pkgs/development/python-modules/pymemoize/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
||||
33
pkgs/development/python-modules/pytmx/default.nix
Normal file
33
pkgs/development/python-modules/pytmx/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib, fetchFromGitHub, isPy3k, buildPythonPackage, pygame, pyglet, pysdl2, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytmx";
|
||||
version = "3.21.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
# The release was not git tagged.
|
||||
owner = "bitcraft";
|
||||
repo = "PyTMX";
|
||||
rev = "38519b94ab9a2db7cacb8e18de4d83750ec6fac2";
|
||||
sha256 = "0p2gc6lgian1yk4qvhbkxfkmndf9ras70amigqzzwr02y2jvq7j8";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygame pyglet pysdl2 six ];
|
||||
|
||||
# The tests are failing for Python 2.7.
|
||||
doCheck = isPy3k;
|
||||
checkPhase = ''
|
||||
# The following test imports an example file from the current working
|
||||
# directory. Thus, we're cd'ing into the test directory.
|
||||
|
||||
cd tests/
|
||||
python -m unittest test_pytmx
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/bitcraft/PyTMX";
|
||||
description = "Python library to read Tiled Map Editor's TMX maps";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ geistesk ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, isPy3k
|
||||
{ lib, fetchPypi, buildPythonPackage, isPy3k, isPy35
|
||||
, mock
|
||||
, pysqlite
|
||||
, pytest
|
||||
@@ -22,7 +22,9 @@ buildPythonPackage rec {
|
||||
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
checkPhase = if isPy35 then ''
|
||||
pytest test -k 'not exception_persistent_flush_py3k'
|
||||
'' else ''
|
||||
pytest test
|
||||
'';
|
||||
|
||||
|
||||
36
pkgs/development/python-modules/tasklib/default.nix
Normal file
36
pkgs/development/python-modules/tasklib/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib, pythonPackages, taskwarrior, writeShellScriptBin }:
|
||||
|
||||
with pythonPackages;
|
||||
|
||||
let
|
||||
|
||||
wsl_stub = writeShellScriptBin "wsl" "true";
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "tasklib";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3964fb7e87f86dc5e2708addb67e69d0932534991991b6bae2e37a0c2059273f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
pytz
|
||||
tzlocal
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
taskwarrior
|
||||
wsl_stub
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/robgolding/tasklib;
|
||||
description = "A library for interacting with taskwarrior databases";
|
||||
maintainers = with maintainers; [ arcnmx ];
|
||||
platforms = platforms.all;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/unicode-slugify/default.nix
Normal file
29
pkgs/development/python-modules/unicode-slugify/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user