Merge pull request #46608 from xeji/p/python-fixes-2
pythonPackages: fix some broken builds
This commit is contained in:
commit
f1f8ce80c4
@ -2,6 +2,7 @@
|
|||||||
, fetchPypi
|
, fetchPypi
|
||||||
, flask
|
, flask
|
||||||
, pymongo
|
, pymongo
|
||||||
|
, vcversioner
|
||||||
, lib
|
, lib
|
||||||
, pytest
|
, pytest
|
||||||
}:
|
}:
|
||||||
@ -18,13 +19,13 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test tests
|
py.test
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Tests seem to hang
|
# Tests seem to hang
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [ flask pymongo ];
|
propagatedBuildInputs = [ flask pymongo vcversioner ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://flask-pymongo.readthedocs.org/";
|
homepage = "http://flask-pymongo.readthedocs.org/";
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "daphne";
|
pname = "daphne";
|
||||||
version = "2.1.0";
|
version = "2.2.2";
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
|||||||
owner = "django";
|
owner = "django";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1lbpn0l796ar77amqy8dap30zxmsn6as8y2lbmp4lk8m9awscwi8";
|
sha256 = "1pr3b7zxjp2jx31lpiy1hfyprpmyiv2kd18n8x6kh6gd5nr0dgp8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
@ -21,9 +21,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [ hypothesis pytest pytest-asyncio ];
|
checkInputs = [ hypothesis pytest pytest-asyncio ];
|
||||||
|
|
||||||
|
doCheck = !stdenv.isDarwin; # most tests fail on darwin
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# Other tests fail, seems to be due to filesystem access
|
py.test
|
||||||
py.test -k "test_cli or test_utils"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, flask, jinja2, itsdangerous, events
|
{ stdenv, buildPythonPackage, fetchPypi, flask, events
|
||||||
, markupsafe, pymongo, flask-pymongo, werkzeug, simplejson, cerberus }:
|
, pymongo, simplejson, cerberus }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "Eve";
|
pname = "Eve";
|
||||||
@ -13,14 +13,9 @@ buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cerberus
|
cerberus
|
||||||
events
|
events
|
||||||
flask-pymongo
|
|
||||||
flask
|
flask
|
||||||
itsdangerous
|
|
||||||
jinja2
|
|
||||||
markupsafe
|
|
||||||
pymongo
|
pymongo
|
||||||
simplejson
|
simplejson
|
||||||
werkzeug
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# tests call a running mongodb instance
|
# tests call a running mongodb instance
|
||||||
|
@ -11,9 +11,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "5049363eb6da2e7c35589477dfc79bf69929ca66de2d7ed2e9dc07acf78636f4";
|
sha256 = "5049363eb6da2e7c35589477dfc79bf69929ca66de2d7ed2e9dc07acf78636f4";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = "nosetests --exclude with_expand_user nilearn/tests";
|
# disable some failing tests
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests nilearn/tests \
|
||||||
|
-e test_cache_mixin_with_expand_user -e test_clean_confounds -e test_detrend
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
matplotlib
|
matplotlib
|
||||||
|
@ -9,10 +9,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "be6bf93ed618c8899aeb6721c24f8009c769879a3b4931e05650f3c173ec17c5";
|
sha256 = "be6bf93ed618c8899aeb6721c24f8009c769879a3b4931e05650f3c173ec17c5";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
checkInputs = [ mock ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pytest ];
|
||||||
|
|
||||||
|
# disable tests that fail with pytest 3.7.4
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test
|
py.test test_pytest_rerunfailures.py -k 'not test_reruns_with_delay'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -6,27 +6,28 @@
|
|||||||
, msgpack
|
, msgpack
|
||||||
, mecab-python3
|
, mecab-python3
|
||||||
, jieba
|
, jieba
|
||||||
, nose
|
, pytest
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "wordfreq";
|
pname = "wordfreq";
|
||||||
version = "2.0";
|
version = "2.2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "LuminosoInsight";
|
owner = "LuminosoInsight";
|
||||||
repo = "wordfreq";
|
repo = "wordfreq";
|
||||||
rev = "e3a1b470d9f8e0d82e9f179ffc41abba434b823b";
|
# upstream don't tag by version
|
||||||
sha256 = "1wjkhhj7nxfnrghwvmvwc672s30lp4b7yr98gxdxgqcq6wdshxwv";
|
rev = "bc12599010c8181a725ec97d0b3990758a48da36";
|
||||||
|
sha256 = "195794vkzq5wsq3mg1dgfhlnz2f7vi1xajlifq6wkg4lzwyq262m";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# These languages require additional dictionaries
|
# These languages require additional dictionaries
|
||||||
nosetests -e test_japanese -e test_korean -e test_languages
|
pytest tests -k 'not test_japanese and not test_korean and not test_languages and not test_french_and_related'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ regex langcodes ftfy msgpack mecab-python3 jieba ];
|
propagatedBuildInputs = [ regex langcodes ftfy msgpack mecab-python3 jieba ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user