commit
2b16b1a1dd
@ -9,7 +9,6 @@
|
|||||||
, idna-ssl
|
, idna-ssl
|
||||||
, pytest
|
, pytest
|
||||||
, gunicorn
|
, gunicorn
|
||||||
, pytest-raisesregexp
|
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -24,7 +23,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disabled = pythonOlder "3.4";
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
checkInputs = [ pytest gunicorn pytest-raisesregexp pytest-mock ];
|
checkInputs = [ pytest gunicorn pytest-mock ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ async-timeout chardet multidict yarl ]
|
propagatedBuildInputs = [ async-timeout chardet multidict yarl ]
|
||||||
++ lib.optional (pythonOlder "3.7") idna-ssl;
|
++ lib.optional (pythonOlder "3.7") idna-ssl;
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchurl
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
pname = "async-timeout";
|
pname = "async-timeout";
|
||||||
version = "2.0.0";
|
version = "2.0.0";
|
||||||
in buildPythonPackage rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "c17d8ac2d735d59aa62737d76f2787a6c938f5a944ecf768a8c0ab70b0dea566";
|
sha256 = "c17d8ac2d735d59aa62737d76f2787a6c938f5a944ecf768a8c0ab70b0dea566";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytestrunner ];
|
|
||||||
# Circular dependency on aiohttp
|
# Circular dependency on aiohttp
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
@ -27,4 +24,4 @@ in buildPythonPackage rec {
|
|||||||
homepage = https://github.com/aio-libs/async_timeout/;
|
homepage = https://github.com/aio-libs/async_timeout/;
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
, pytest, pytestrunner, hypothesis }:
|
, pytest, pytestrunner, hypothesis }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "chardet";
|
pname = "chardet";
|
||||||
version = "3.0.4";
|
version = "3.0.4";
|
||||||
|
|
||||||
@ -11,7 +10,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4";
|
sha256 = "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest pytestrunner hypothesis ];
|
checkInputs = [ pytest pytestrunner hypothesis ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/chardet/chardet;
|
homepage = https://github.com/chardet/chardet;
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython
|
, pytest, pytestrunner
|
||||||
, pytest, psutil, pytestrunner
|
|
||||||
, isPy3k
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -15,8 +14,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0liazqlyk2nmr82nhiw2z72j7bjqxaisifkj476msw140d4i4i7v";
|
sha256 = "0liazqlyk2nmr82nhiw2z72j7bjqxaisifkj476msw140d4i4i7v";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cython ];
|
checkInputs = [ pytest pytestrunner ];
|
||||||
checkInputs = [ pytest psutil pytestrunner ];
|
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm, pytest-forked }:
|
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm, pytest-forked }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "pytest-xdist";
|
pname = "pytest-xdist";
|
||||||
version = "1.22.0";
|
version = "1.22.0";
|
||||||
|
|
||||||
@ -10,21 +9,19 @@ buildPythonPackage rec {
|
|||||||
sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
|
sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest setuptools_scm pytest-forked];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
buildInputs = [ pytest pytest-forked ];
|
||||||
propagatedBuildInputs = [ execnet ];
|
propagatedBuildInputs = [ execnet ];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
rm testing/acceptance_test.py testing/test_remote.py testing/test_slavemanage.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test testing
|
# Excluded tests access file system
|
||||||
|
py.test testing -k "not test_distribution_rsyncdirs_example \
|
||||||
|
and not test_rsync_popen_with_path \
|
||||||
|
and not test_popen_rsync_subdir \
|
||||||
|
and not test_init_rsync_roots \
|
||||||
|
and not test_rsyncignore"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Only test on 3.x
|
|
||||||
# INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'getconsumer'
|
|
||||||
doCheck = isPy3k;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
|
description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
|
||||||
homepage = https://github.com/pytest-dev/pytest-xdist;
|
homepage = https://github.com/pytest-dev/pytest-xdist;
|
||||||
|
Loading…
Reference in New Issue
Block a user