Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2019-09-12 22:49:43 +02:00
176 changed files with 3834 additions and 3772 deletions

View File

@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, flake8
, jinja2
, pytestCheckHook
, pytest-aiohttp
, pyyaml
}:
buildPythonPackage rec {
pname = "aiohttp-swagger";
version = "1.0.5";
src = fetchFromGitHub {
owner = "cr0hn";
repo = pname;
rev = "5a59e86f8c5672d2cc97dd35dc730c2f809d95ce"; # corresponds to 1.0.5 on PyPi, no tag on GitHub
sha256 = "1vpfk5b3f7s9qzr2q48g776f39xzqppjwm57scfzqqmbldkk5nv7";
};
propagatedBuildInputs = [ aiohttp jinja2 pyyaml ];
checkInputs = [ flake8 pytestCheckHook pytest-aiohttp ];
meta = with lib; {
description = "Swagger API Documentation builder for aiohttp";
homepage = https://github.com/cr0hn/aiohttp-swagger;
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}

View File

@@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytest, pytestcov, mock, coverage
, pytest, pytestcov, mock, coverage, setuptools
, Mako, sqlalchemy, python-editor, dateutil
}:
@@ -13,7 +13,7 @@ buildPythonPackage rec {
};
buildInputs = [ pytest pytestcov mock coverage ];
propagatedBuildInputs = [ Mako sqlalchemy python-editor dateutil ];
propagatedBuildInputs = [ Mako sqlalchemy python-editor dateutil setuptools ];
meta = with stdenv.lib; {
homepage = https://bitbucket.org/zzzeek/alembic;

View File

@@ -1,5 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
, glibcLocales }:
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, six
, wcwidth, pytest, mock, glibcLocales
}:
let
fixTestSuiteFailure_1 = fetchpatch {
url = https://github.com/jquast/blessed/pull/108/commits/76a54d39b0f58bfc71af04ee143459eefb0e1e7b.patch;
sha256 = "1higmv4c03ly7ywac1d7s71f3hrl531vj16nsfl9xh6zh9c47qcg";
};
fixTestSuiteFailure_2 = fetchpatch {
url = https://github.com/jquast/blessed/pull/108/commits/aa94e01aed745715e667601fb674844b257cfcc9.patch;
sha256 = "1frygr6sc1vakdfx1hf6jj0dbwibiqz8hw9maf1b605cbslc9nay";
};
in
buildPythonPackage rec {
pname = "blessed";
@@ -10,6 +25,8 @@ buildPythonPackage rec {
sha256 = "777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21";
};
patches = [ fixTestSuiteFailure_1 fixTestSuiteFailure_2 ];
checkInputs = [ pytest mock glibcLocales ];
checkPhase = ''

View File

@@ -12,6 +12,8 @@ buildPythonPackage rec {
sha256 = "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw";
};
dontConfigure = true;
checkInputs = [ pytest ];
checkPhase = ''

View File

@@ -0,0 +1,28 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, isPy36, flake8, click, pyyaml, six, pytestCheckHook, pytestcov }:
buildPythonPackage rec {
pname = "clickclick";
version = "1.2.2";
src = fetchFromGitHub {
owner = "hjacobs";
repo = "python-clickclick";
rev = version;
sha256 = "1rij9ws9nhsmagiy1vclzliiqfkxi006rf65qvrw1k3sm2s8p5g0";
};
checkInputs = [ pytestCheckHook pytestcov ];
propagatedBuildInputs = [ flake8 click pyyaml six ];
disabledTests = lib.optionals isPy36 [
"test_cli"
"test_choice_default"
];
meta = with stdenv.lib; {
description = "Click command line utilities";
homepage = https://github.com/hjacobs/python-clickclick/;
license = licenses.asl20;
maintainers = with maintainers; [ elohmeier ];
};
}

View File

@@ -0,0 +1,94 @@
{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, glibcLocales
, lib
, pythonOlder
, aiohttp
, aiohttp-swagger
, aiohttp-jinja2
, clickclick
, decorator
, flake8
, flask
, gevent
, inflection
, jsonschema
, mock
, openapi-spec-validator
, pathlib
, pytest
, pytest-aiohttp
, pytestcov
, pyyaml
, requests
, six
, swagger-ui-bundle
, testfixtures
, typing
, ujson
}:
buildPythonPackage rec {
pname = "connexion";
version = "2.3.0";
# we're fetching from GitHub because tests weren't distributed on PyPi
src = fetchFromGitHub {
owner = "zalando";
repo = pname;
rev = version;
sha256 = "1xdm3misxwgrl87ms0vvn0h4rjwzlmmi7kcra2ahs40iaraf33ln";
};
checkInputs = [
decorator
mock
pytest
pytestcov
testfixtures
flask
swagger-ui-bundle
]
++ lib.optionals isPy3k [ aiohttp aiohttp-jinja2 aiohttp-swagger ujson pytest-aiohttp ]
++ lib.optional (pythonOlder "3.7") glibcLocales
;
propagatedBuildInputs = [
clickclick
jsonschema
pyyaml
requests
six
inflection
openapi-spec-validator
swagger-ui-bundle
flask
]
++ lib.optional (pythonOlder "3.4") pathlib
++ lib.optional (pythonOlder "3.6") typing
++ lib.optionals isPy3k [ aiohttp aiohttp-jinja2 aiohttp-swagger ujson ]
;
preConfigure = lib.optional (pythonOlder "3.7") ''
export LANG=en_US.UTF-8
'';
postPatch = ''
substituteInPlace setup.py --replace "'aiohttp>=2.3.10,<3.5.2'" "'aiohttp>=2.3.10'"
'';
checkPhase = if isPy3k then ''
pytest -k "not test_app_get_root_path and \
not test_verify_oauth_scopes_remote and \
not test_verify_oauth_scopes_local and \
not test_run_with_aiohttp_not_installed"''
else "pytest --ignore=tests/aiohttp";
meta = with lib; {
description = "Swagger/OpenAPI First framework on top of Flask";
homepage = https://github.com/zalando/connexion/;
license = licenses.asl20;
maintainers = with maintainers; [ elohmeier ];
};
}

View File

@@ -1,23 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, six, typing
, six, typing, pygments
, django, shortuuid, python-dateutil, pytest
, pytest-django, pytestcov, mock, vobject
, werkzeug, glibcLocales
, werkzeug, glibcLocales, factory_boy
}:
buildPythonPackage rec {
pname = "django-extensions";
version = "2.1.4";
version = "2.1.9";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "1bp0ybarkrj66qx2gn9954vsjqq2ya1w4bppfhr763mkis8qnb4f";
sha256 = "08vggm6wrn5cbf8brfprif0rjrkqz06wddsw0ir1skkk8q2sp1b2";
};
postPatch = ''
substituteInPlace setup.py --replace "'tox'," ""
# not yet pytest 5 compatible?
rm tests/management/commands/test_set_fake_emails.py
rm tests/management/commands/test_set_fake_passwords.py
rm tests/management/commands/test_validate_templates.py
# pip should not be used during tests...
rm tests/management/commands/test_pipchecker.py
'';
propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") typing;
@@ -25,7 +33,7 @@ buildPythonPackage rec {
checkInputs = [
django shortuuid python-dateutil pytest
pytest-django pytestcov mock vobject
werkzeug glibcLocales
werkzeug glibcLocales factory_boy pygments
];
LC_ALL = "en_US.UTF-8";

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, django, dateutil, whoosh, pysolr
, setuptools, setuptools_scm, django, dateutil, whoosh, pysolr
, coverage, mock, nose, geopy, requests }:
buildPythonPackage rec {
@@ -12,7 +12,7 @@ buildPythonPackage rec {
};
checkInputs = [ pysolr whoosh dateutil geopy coverage nose mock coverage requests ];
propagatedBuildInputs = [ django ];
propagatedBuildInputs = [ django setuptools ];
nativeBuildInputs = [ setuptools_scm ];
postPatch = ''

View File

@@ -21,11 +21,6 @@ buildPythonPackage rec {
})
];
# patch only $out/bin to avoid problems with starter templates (see #3134)
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
propagatedBuildInputs = [ pytz ];
# too complicated to setup

View File

@@ -15,11 +15,6 @@ buildPythonPackage rec {
# too complicated to setup
doCheck = false;
# patch only $out/bin to avoid problems with starter templates (see #3134)
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;

View File

@@ -24,11 +24,6 @@ buildPythonPackage rec {
})
];
# patch only $out/bin to avoid problems with starter templates (see #3134)
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
propagatedBuildInputs = [ pytz ];
# too complicated to setup

View File

@@ -1,18 +1,18 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, six, hypothesis, mock
, python-Levenshtein, pytest }:
, python-Levenshtein, pytest, termcolor, isPy27, enum34 }:
buildPythonPackage rec {
pname = "fire";
version = "0.1.3";
version = "0.2.1";
src = fetchFromGitHub {
owner = "google";
repo = "python-fire";
rev = "v${version}";
sha256 = "0kdcmzr3sgzjsw5fmvdylgrn8akqjbs433jbgqzp498njl9cc6qx";
sha256 = "1r6cmihafd7mb6j3mvgk251my6ckb0sqqj1l2ny2azklv175b38a";
};
propagatedBuildInputs = [ six ];
propagatedBuildInputs = [ six termcolor ] ++ stdenv.lib.optional isPy27 enum34;
checkInputs = [ hypothesis mock python-Levenshtein pytest ];
@@ -20,14 +20,6 @@ buildPythonPackage rec {
py.test
'';
patches = [
# Add Python 3.7 support. Remove with the next release
(fetchpatch {
url = "https://github.com/google/python-fire/commit/668007ae41391f5964870b4597e41493a936a11e.patch";
sha256 = "0rf7yzv9qx66zfmdggfz478z37fi4rwx4hlh3dk1065sx5rfksi0";
})
];
meta = with stdenv.lib; {
description = "A library for automatically generating command line interfaces";
longDescription = ''

View File

@@ -28,6 +28,9 @@ buildPythonPackage rec {
"-I${pkgs.qt5.qtbase.dev}/include/QtWidgets"
];
dontUseQmakeConfigure = true;
dontUseCmakeConfigure = true;
doCheck = false;
postPatch = ''
@@ -39,6 +42,7 @@ buildPythonPackage rec {
homepage = http://pivy.coin3d.org/;
description = "A Python binding for Coin";
license = licenses.bsd0;
maintainers = with maintainers; [ gebner ];
};
}

View File

@@ -10,7 +10,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ ply ];
disabled = isPy3k;
doCheck = !isPy3k;
meta = {
homepage = https://github.com/erezsh/plyplus;

View File

@@ -6,6 +6,7 @@
, qtdeclarative
, qtwebchannel
, withConnectivity ? false, qtconnectivity
, withMultimedia ? false, qtmultimedia
, withWebKit ? false, qtwebkit
, withWebSockets ? false, qtwebsockets
}:
@@ -50,6 +51,7 @@ in buildPythonPackage rec {
qtwebchannel
]
++ lib.optional withConnectivity qtconnectivity
++ lib.optional withMultimedia qtmultimedia
++ lib.optional withWebKit qtwebkit
++ lib.optional withWebSockets qtwebsockets
;
@@ -121,6 +123,7 @@ in buildPythonPackage rec {
]
++ lib.optional withWebSockets "PyQt5.QtWebSockets"
++ lib.optional withWebKit "PyQt5.QtWebKit"
++ lib.optional withMultimedia "PyQt5.QtMultimedia"
++ lib.optional withConnectivity "PyQt5.QtConnectivity"
;
imports = lib.concatMapStrings (module: "import ${module};") modules;

View File

@@ -9,10 +9,6 @@ buildPythonPackage rec {
sha256 = "19cyndx23xmpbhz4qrwmfwsmnnaczd0dw7qg977ksq2dbvxy29dx";
};
# Seems to fail due to chroot and would cause circular dependency
# with pytest
doCheck = false;
meta = with stdenv.lib; {
homepage = https://bitbucket.org/pypa/setuptools_scm/;
description = "Handles managing your python package versions in scm metadata";

View File

@@ -3,6 +3,7 @@
, isPy3k
, fetchPypi
, setuptools_scm
, setuptools
, requests
, lxml
, beautifulsoup4
@@ -26,7 +27,7 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ requests lxml beautifulsoup4 ];
propagatedBuildInputs = [ setuptools requests lxml beautifulsoup4 ];
meta = with lib; {
homepage = https://github.com/JustAnotherArchivist/snscrape;

View File

@@ -0,0 +1,29 @@
{ stdenv, buildPythonPackage, fetchPypi, jinja2, flake8 }:
buildPythonPackage rec {
pname = "swagger-ui-bundle";
version = "0.0.5";
src = fetchPypi {
pname = "swagger_ui_bundle";
inherit version;
sha256 = "0v69v94mzzb63ciwpz3n8jwxqcyll3fsyx087s9k9q543zdqzbh1";
};
# patch away unused test requirements since package contains no tests
postPatch = ''
substituteInPlace setup.py --replace "setup_requires=['pytest-runner', 'flake8']" "setup_requires=[]"
'';
propagatedBuildInputs = [ jinja2 ];
# package contains no tests
doCheck = false;
meta = with stdenv.lib; {
description = "bundled swagger-ui pip package";
homepage = https://github.com/dtkav/swagger_ui_bundle;
license = licenses.asl20;
maintainers = with maintainers; [ elohmeier ];
};
}

View File

@@ -1,13 +1,13 @@
{ fetchPypi, buildPythonPackage, lib }:
buildPythonPackage rec {
version = "3.9.10";
version = "3.9.11";
pname = "thespian";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "bffb04b93afcbab0268332445f02757c326f95056eb7e1e2f0515c1dfb92ac7d";
sha256 = "84887f0437ec144f7266ae22678bc5dc5d2a9e60a89f1f7c1707cbea5e03022a";
};
# Do not run the test suite: it takes a long time and uses

View File

@@ -14,7 +14,7 @@ buildPythonPackage rec {
sha256 = "75e38454757c77060ad3782bd071682d6d316de86f9aec1c2042d236f93aec7b";
};
buildInputs = [ pytest ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ tvdb_api ];
# a ton of tests fail with: IOError: tvnamer/main.py could not be found in . or ..