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
, python3Packages
, wrapGAppsHook
, xvfb_run
, gtk3
, gobject-introspection
, libcanberra-gtk3
, dbus
, poppler_gi
, python3
}:
python3Packages.buildPythonApplication rec {

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
{ 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,
txrequests, pypugjs, boto3, moto, mock, python-lz4, setuptoolsTrial,
isort, pylint, flake8, buildbot-worker, buildbot-pkg, buildbot-plugins,

View File

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

View File

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

View File

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

View File

@ -1,5 +1,10 @@
{ lib, stdenv, buildPythonPackage, fetchPypi
, pytest, pytestcov, watchdog, mock
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pytest-cov
, watchdog
}:
buildPythonPackage rec {
@ -11,11 +16,14 @@ buildPythonPackage rec {
sha256 = "3818f53dabc24da66f65cf4878c1c7a9b5df0c46b813e014abdd7c569eb9a02a";
};
checkPhase = ''
py.test
'';
# 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)
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
, pyopenssl
, ndg-httpsclient
, pytest
, pytestcov
, pytestCheckHook
, pytest-cov
, pytest-mock
, pytest-pylint
, pytest-click
@ -39,13 +39,9 @@ buildPythonPackage rec {
] ++ lib.optionals isPy27 [ functools32 ];
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
doCheck = false;

View File

@ -23,8 +23,6 @@ buildPythonPackage rec {
substituteInPlace pyfakefs/tests/fake_os_test.py \
--replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \
--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 ''
# this test fails on darwin due to case-insensitive file system
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 }:
buildPythonPackage rec {

View File

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

View File

@ -19,6 +19,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ beaker pyramid ];
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 ];
};
}

View File

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

View File

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

View File

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

View File

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

View File

@ -22,6 +22,6 @@ buildPythonPackage rec {
homepage = "https://github.com/Pylons/pyramid_mako";
description = "Mako template bindings for the Pyramid web framework";
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";
homepage = "https://github.com/mozilla-services/pyramid_multiauth";
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";
};
propagatedBuildInputs = [ pytest colorama docopt watchdog ];
# No Tests
doCheck = false;
propagatedBuildInputs = [ pytest colorama docopt watchdog ];
pythonImportsCheck = [ "pytest_watch" ];
meta = with lib; {
homepage = "https://github.com/joeyespo/pytest-watch";
@ -28,4 +29,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ dmvianna ];
};
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6163,6 +6163,8 @@ in {
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-isort = callPackage ../development/python-modules/pytest-isort { };