Merge pull request #113345 from SuperSandro2000/fix-collection14

This commit is contained in:
Sandro 2021-02-17 14:38:32 +01:00 committed by GitHub
commit 6d5d0d5a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
34 changed files with 103 additions and 61 deletions

View File

@ -1,13 +1,10 @@
{ lib { lib
, python3Packages , python3Packages
, wrapGAppsHook , wrapGAppsHook
, xvfb_run
, gtk3 , gtk3
, gobject-introspection , gobject-introspection
, libcanberra-gtk3 , libcanberra-gtk3
, dbus
, poppler_gi , poppler_gi
, python3
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {

View File

@ -1,8 +1,14 @@
{ lib, buildPythonPackage, fetchFromGitHub { lib
, flit , buildPythonPackage
, lxml, httpx , fetchFromGitHub
, pytest, pytestcov, pytest-asyncio, pytest-mock, aresponses
, pythonOlder , pythonOlder
, flit
, async-timeout
, lxml
, httpx
, pytestCheckHook
, pytest-asyncio
, pytest-httpx
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -23,24 +29,18 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
async-timeout
httpx httpx
lxml lxml
]; ];
# requires pytest-httpx pythonImportsCheck = [ "RMVtransport" ];
doCheck = false;
checkInputs = [ checkInputs = [
pytest pytestCheckHook
pytestcov
pytest-asyncio pytest-asyncio
pytest-mock pytest-httpx
# pytest-httpx is missing
aresponses
]; ];
checkPhase = ''
pytest --cov=RMVtransport tests
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/cgtobi/PyRMVtransport"; homepage = "https://github.com/cgtobi/PyRMVtransport";

View File

@ -3,7 +3,7 @@
, fetchFromGitHub , fetchFromGitHub
, isPy27 , isPy27
, pygments , pygments
, pytest , pytestCheckHook
, pytestcov , pytestcov
, uvloop , uvloop
}: }:
@ -27,7 +27,7 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
pytestcov pytestcov
uvloop uvloop
]; ];
@ -37,9 +37,7 @@ buildPythonPackage rec {
export HOME=$TMPDIR export HOME=$TMPDIR
''; '';
checkPhase = '' pythonImportsCheck = [ "aiorun" ];
pytest
'';
meta = with lib; { meta = with lib; {
description = "Boilerplate for asyncio applications"; description = "Boilerplate for asyncio applications";

View File

@ -1,4 +1,4 @@
{ lib, isPy3k, fetchPypi, fetchpatch, buildPythonPackage { lib, isPy3k, fetchPypi, buildPythonPackage
, uvloop, postgresql }: , uvloop, postgresql }:
buildPythonPackage rec { buildPythonPackage rec {
@ -16,6 +16,8 @@ buildPythonPackage rec {
postgresql postgresql
]; ];
pythonImportsCheck = [ "asyncpg" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/MagicStack/asyncpg"; homepage = "https://github.com/MagicStack/asyncpg";
description = "An asyncio PosgtreSQL driver"; description = "An asyncio PosgtreSQL driver";

View File

@ -26,6 +26,8 @@ buildPythonPackage rec {
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ]; checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ]; propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ];
pythonImportsCheck = [ "aws_adfs" ];
meta = with lib; { meta = with lib; {
description = "Command line tool to ease aws cli authentication against ADFS"; description = "Command line tool to ease aws cli authentication against ADFS";
homepage = "https://github.com/venth/aws-adfs"; homepage = "https://github.com/venth/aws-adfs";

View File

@ -1,5 +1,5 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, makeWrapper, isPy3k, { stdenv, lib, buildPythonPackage, fetchPypi, makeWrapper, isPy3k,
python, twisted, jinja2, zope_interface, future, sqlalchemy, python, twisted, jinja2, zope_interface, sqlalchemy,
sqlalchemy_migrate, dateutil, txaio, autobahn, pyjwt, pyyaml, treq, sqlalchemy_migrate, dateutil, txaio, autobahn, pyjwt, pyyaml, treq,
txrequests, pypugjs, boto3, moto, mock, python-lz4, setuptoolsTrial, txrequests, pypugjs, boto3, moto, mock, python-lz4, setuptoolsTrial,
isort, pylint, flake8, buildbot-worker, buildbot-pkg, buildbot-plugins, isort, pylint, flake8, buildbot-worker, buildbot-pkg, buildbot-plugins,

View File

@ -20,6 +20,7 @@ buildPythonPackage rec {
# tests not packaged with pypi release # tests not packaged with pypi release
doCheck = false; doCheck = false;
pythonImportsCheck = [ "cornice" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/mozilla-services/cornice"; homepage = "https://github.com/mozilla-services/cornice";
@ -27,5 +28,4 @@ buildPythonPackage rec {
license = licenses.mpl20; license = licenses.mpl20;
maintainers = [ maintainers.costrouc ]; maintainers = [ maintainers.costrouc ];
}; };
} }

View File

@ -17,6 +17,7 @@ buildPythonPackage rec {
# There are no tests # There are no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "easywatch" ];
meta = with lib; { meta = with lib; {
description = "Dead-simple way to watch a directory"; description = "Dead-simple way to watch a directory";

View File

@ -20,6 +20,8 @@ buildPythonPackage rec {
checkInputs = [ mock pyfakefs ]; checkInputs = [ mock pyfakefs ];
pythonImportsCheck = [ "fido2" ];
meta = with lib; { meta = with lib; {
description = "Provides library functionality for FIDO 2.0, including communication with a device over USB."; description = "Provides library functionality for FIDO 2.0, including communication with a device over USB.";
homepage = "https://github.com/Yubico/python-fido2"; homepage = "https://github.com/Yubico/python-fido2";

View File

@ -1,5 +1,10 @@
{ lib, stdenv, buildPythonPackage, fetchPypi { lib
, pytest, pytestcov, watchdog, mock , stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pytest-cov
, watchdog
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -11,11 +16,14 @@ buildPythonPackage rec {
sha256 = "3818f53dabc24da66f65cf4878c1c7a9b5df0c46b813e014abdd7c569eb9a02a"; sha256 = "3818f53dabc24da66f65cf4878c1c7a9b5df0c46b813e014abdd7c569eb9a02a";
}; };
checkPhase = ''
py.test
'';
# FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent # FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent
# segfaults in the testsuite that end up failing the tests in a background thread (in myapp) # segfaults in the testsuite that end up failing the tests in a background thread (in myapp)
checkInputs = [ pytest pytestcov mock ] ++ lib.optional (!stdenv.isDarwin) watchdog; checkInputs = [ pytestCheckHook pytest-cov ] ++ lib.optional (!stdenv.isDarwin) watchdog;
meta = with lib; {
description = "in-process file monitor / reloader for reloading your code automatically during development";
homepage = "https://github.com/Pylons/hupper";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
} }

View File

@ -12,8 +12,8 @@
, flask , flask
, pyopenssl , pyopenssl
, ndg-httpsclient , ndg-httpsclient
, pytest , pytestCheckHook
, pytestcov , pytest-cov
, pytest-mock , pytest-mock
, pytest-pylint , pytest-pylint
, pytest-click , pytest-click
@ -39,13 +39,9 @@ buildPythonPackage rec {
] ++ lib.optionals isPy27 [ functools32 ]; ] ++ lib.optionals isPy27 [ functools32 ];
checkInputs = [ checkInputs = [
pytest pytestcov pytest-mock pytest-pylint pytest-click pytestCheckHook pytest-cov pytest-mock pytest-pylint pytest-click
]; ];
checkPhase = ''
pytest
'';
# many errors -- tests assume inside of git repo, linting errors 13/317 fail # many errors -- tests assume inside of git repo, linting errors 13/317 fail
doCheck = false; doCheck = false;

View File

@ -23,8 +23,6 @@ buildPythonPackage rec {
substituteInPlace pyfakefs/tests/fake_os_test.py \ substituteInPlace pyfakefs/tests/fake_os_test.py \
--replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \ --replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \
--replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows" --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows"
substituteInPlace pyfakefs/tests/fake_filesystem_unittest_test.py \
--replace "test_copy_real_file" "notest_copy_real_file"
'' + (lib.optionalString stdenv.isDarwin '' '' + (lib.optionalString stdenv.isDarwin ''
# this test fails on darwin due to case-insensitive file system # this test fails on darwin due to case-insensitive file system
substituteInPlace pyfakefs/tests/fake_os_test.py \ substituteInPlace pyfakefs/tests/fake_os_test.py \

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch, six, chardet, nose { lib, buildPythonPackage, fetchPypi, six, chardet, nose
, django, jinja2, tornado, pyramid, pyramid_mako, Mako }: , django, jinja2, tornado, pyramid, pyramid_mako, Mako }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -33,6 +33,8 @@ buildPythonPackage rec {
# https://github.com/Pylons/pyramid/issues/1899 # https://github.com/Pylons/pyramid/issues/1899
doCheck = !isPy35; doCheck = !isPy35;
pythonImportsCheck = [ "pyramid" ];
meta = with lib; { meta = with lib; {
description = "The Pyramid Web Framework, a Pylons project"; description = "The Pyramid Web Framework, a Pylons project";
homepage = "https://trypyramid.com/"; homepage = "https://trypyramid.com/";

View File

@ -19,6 +19,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ beaker pyramid ]; propagatedBuildInputs = [ beaker pyramid ];
meta = with lib; { meta = with lib; {
description = "Beaker session factory backend for Pyramid";
homepage = "https://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/";
# idk, see https://github.com/Pylons/pyramid_beaker/blob/master/LICENSE.txt
# license = licenses.mpl20;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ domenkozar ];
}; };
} }

View File

@ -23,11 +23,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ]; propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
pythonImportsCheck = [ "pyramid_chameleon" ];
meta = with lib; { meta = with lib; {
description = "Chameleon template compiler for pyramid"; description = "Chameleon template compiler for pyramid";
homepage = "https://github.com/Pylons/pyramid_chameleon"; homepage = "https://github.com/Pylons/pyramid_chameleon";
license = licenses.bsd0; license = licenses.bsd0;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ domenkozar ];
}; };
} }

View File

@ -15,6 +15,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ pyramid ]; propagatedBuildInputs = [ pyramid ];
pythonImportsCheck = [ "pyramid_exclog" ];
meta = with lib; { meta = with lib; {
description = "A package which logs to a Python logger when an exception is raised by a Pyramid application"; description = "A package which logs to a Python logger when an exception is raised by a Pyramid application";
homepage = "https://docs.pylonsproject.org/"; homepage = "https://docs.pylonsproject.org/";

View File

@ -21,10 +21,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ pyramid hawkauthlib tokenlib ]; propagatedBuildInputs = [ pyramid hawkauthlib tokenlib ];
buildInputs = [ webtest ]; buildInputs = [ webtest ];
pythonImportsCheck = [ "pyramid_hawkauth" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/mozilla-services/pyramid_hawkauth"; homepage = "https://github.com/mozilla-services/pyramid_hawkauth";
description = "A Pyramid authentication plugin for HAWK"; description = "A Pyramid authentication plugin for HAWK";
license = licenses.mpl20; license = licenses.mpl20;
maintainers = with maintainers; [ ];
}; };
} }

View File

@ -18,11 +18,12 @@ buildPythonPackage rec {
buildInputs = [ webtest ]; buildInputs = [ webtest ];
propagatedBuildInputs = [ jinja2 pyramid ]; propagatedBuildInputs = [ jinja2 pyramid ];
pythonImportsCheck = [ "pyramid_jinja2" ];
meta = with lib; { meta = with lib; {
description = "Jinja2 template bindings for the Pyramid web framework"; description = "Jinja2 template bindings for the Pyramid web framework";
homepage = "https://github.com/Pylons/pyramid_jinja2"; homepage = "https://github.com/Pylons/pyramid_jinja2";
license = licenses.bsd0; license = licenses.bsd0;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ domenkozar ];
}; };
} }

View File

@ -22,6 +22,6 @@ buildPythonPackage rec {
homepage = "https://github.com/Pylons/pyramid_mako"; homepage = "https://github.com/Pylons/pyramid_mako";
description = "Mako template bindings for the Pyramid web framework"; description = "Mako template bindings for the Pyramid web framework";
license = licenses.bsd0; license = licenses.bsd0;
maintainers = with maintainers; [];
}; };
} }

View File

@ -19,6 +19,6 @@ buildPythonPackage rec {
description = "Authentication policy for Pyramid that proxies to a stack of other authentication policies"; description = "Authentication policy for Pyramid that proxies to a stack of other authentication policies";
homepage = "https://github.com/mozilla-services/pyramid_multiauth"; homepage = "https://github.com/mozilla-services/pyramid_multiauth";
license = licenses.mpl20; license = licenses.mpl20;
maintainers = with maintainers; [];
}; };
} }

View File

@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, httpx, pytest }:
buildPythonPackage rec {
pname = "pytest-httpx";
version = "0.10.1";
src = fetchPypi {
inherit version;
pname = "pytest_httpx";
extension = "tar.gz";
sha256 = "13ld6nnsc3f7i4zl4qm1jh358z0awr6xfk05azwgngmjb7jmcz0a";
};
propagatedBuildInputs = [ httpx pytest ];
# not in pypi tarball
doCheck = false;
pythonImportsCheck = [ "pytest_httpx" ];
meta = with lib; {
description = "Send responses to httpx";
homepage = "https://github.com/Colin-b/pytest_httpx";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -16,10 +16,11 @@ buildPythonPackage rec {
sha256 = "06136f03d5b361718b8d0d234042f7b2f203910d8568f63df2f866b547b3d4b9"; sha256 = "06136f03d5b361718b8d0d234042f7b2f203910d8568f63df2f866b547b3d4b9";
}; };
propagatedBuildInputs = [ pytest colorama docopt watchdog ];
# No Tests # No Tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "pytest_watch" ];
propagatedBuildInputs = [ pytest colorama docopt watchdog ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/joeyespo/pytest-watch"; homepage = "https://github.com/joeyespo/pytest-watch";
@ -28,4 +29,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ dmvianna ]; maintainers = with maintainers; [ dmvianna ];
}; };
} }

View File

@ -20,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ six ]; propagatedBuildInputs = [ six ];
checkInputs = [ pytest six mock pyfakefs unittest2 ]; checkInputs = [ pytest mock pyfakefs unittest2 ];
checkPhase = '' checkPhase = ''
pytest pyu2f/tests pytest pyu2f/tests

View File

@ -1,5 +1,4 @@
{ lib { lib
, attrs
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, httpcore , httpcore
@ -8,7 +7,6 @@
, pytest-cov , pytest-cov
, pytestCheckHook , pytestCheckHook
, trio , trio
, xmltodict
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -60,6 +60,7 @@ buildPythonPackage rec {
"test_turtle_launc" "test_turtle_launc"
"test_umr_skip_cython" "test_umr_skip_cython"
"test_umr_pathlist" "test_umr_pathlist"
"test_user_sitepackages_in_pathlist"
]; ];
meta = with lib; { meta = with lib; {

View File

@ -31,6 +31,8 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace "pyqt5<5.13" "pyqt5" substituteInPlace setup.py --replace "pyqt5<5.13" "pyqt5"
''; '';
pythonImportsCheck = [ "spyder" ];
meta = with lib; { meta = with lib; {
description = "Library providing a scientific python development environment"; description = "Library providing a scientific python development environment";
longDescription = '' longDescription = ''

View File

@ -1,5 +1,4 @@
{ fetchFromGitHub { lib
, lib
, python3 , python3
, enableTelemetry ? false , enableTelemetry ? false
}: }:

View File

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
''; '';
buildPhase = "${stdenv.shell} ${./helper.sh}"; buildPhase = "${stdenv.shell} ${./helper.sh}";
installPhase = ":"; # buildPhase does this. dontInstall = true;
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -5,7 +5,7 @@
, systemd, withSystemd ? stdenv.isLinux , systemd, withSystemd ? stdenv.isLinux
, libcap, withCap ? stdenv.isLinux , libcap, withCap ? stdenv.isLinux
, python2, python3, ncurses , python2, python3, ncurses
, ruby, php, libmysqlclient , ruby, php
}: }:
let php-embed = php.override { let php-embed = php.override {

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, fetchpatch, python3Packages }: { lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "pubs"; pname = "pubs";

View File

@ -11,8 +11,6 @@
, qtgraphicaleffects , qtgraphicaleffects
, qtquickcontrols , qtquickcontrols
, qtquickcontrols2 , qtquickcontrols2
, qtdeclarative
, qtsvg
, yubikey-manager , yubikey-manager
, yubikey-personalization , yubikey-personalization
}: }:

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
buildPhase = ":"; dontBuild = true;
installPhase = installPhase =
let let

View File

@ -6163,6 +6163,8 @@ in {
pytest-httpserver = callPackage ../development/python-modules/pytest-httpserver { }; pytest-httpserver = callPackage ../development/python-modules/pytest-httpserver { };
pytest-httpx = callPackage ../development/python-modules/pytest-httpx { };
pytest-instafail = callPackage ../development/python-modules/pytest-instafail { }; pytest-instafail = callPackage ../development/python-modules/pytest-instafail { };
pytest-isort = callPackage ../development/python-modules/pytest-isort { }; pytest-isort = callPackage ../development/python-modules/pytest-isort { };