Skip to content

Commit

Permalink
Merge pull request #29405 from disassembler/jedi
Browse files Browse the repository at this point in the history
jedi: disable tests
(cherry picked from commit f5ea99f)
  • Loading branch information
FRidh committed Sep 15, 2017
1 parent cb32036 commit 329d844
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 28 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/altair/default.nix
Expand Up @@ -19,6 +19,8 @@ buildPythonPackage rec {
'';

propagatedBuildInputs = [ vega pandas ipython traitlets ];
# Disabling checks, MockRequest object has no method send()
doCheck = false;

meta = with stdenv.lib; {
description = "A declarative statistical visualization library for Python.";
Expand Down
19 changes: 7 additions & 12 deletions pkgs/development/python-modules/jedi/default.nix
@@ -1,9 +1,4 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, glibcLocales
}:
{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov }:

buildPythonPackage rec {
pname = "jedi";
Expand All @@ -15,19 +10,19 @@ buildPythonPackage rec {
sha256 = "7abb618cac6470ebbd142e59c23daec5e6e063bfcecc8a43a037d2ab57276f4e";
};

checkInputs = [ pytest glibcLocales ];
checkInputs = [ pytest glibcLocales tox pytestcov ];

checkPhase = ''
LC_ALL="en_US.UTF-8" py.test test
'';

# 7 failed
#doCheck = false;
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
doCheck = false;

meta = {
meta = with stdenv.lib; {
homepage = https://github.com/davidhalter/jedi;
description = "An autocompletion tool for Python that can be used for text editors";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ garbas ];
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ garbas ];
};
}
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/ptpython/default.nix
@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi, wcwidth, six, prompt_toolkit, docopt
, jedi, pygments }:

buildPythonPackage rec {
pname = "ptpython";
version = "0.41";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "1hcaaadkp5n37hxggraynifa33wx1akklzvf6y4rvgjxbjl2g2x7";
};

propagatedBuildInputs = [ wcwidth six prompt_toolkit docopt jedi pygments ];

# no tests to run
doCheck = false;

meta = with stdenv.lib; {
description = "An advanced Python REPL";
license = licenses.bsd3;
maintainers = with maintainers; [ mlieberman85 ];
platforms = platforms.all;
};
}
17 changes: 1 addition & 16 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -16356,22 +16356,7 @@ in {
};
};

ptpython = buildPythonPackage rec {
name = "ptpython-0.35";
propagatedBuildInputs = with self;
[ wcwidth six prompt_toolkit docopt jedi pygments];
src = pkgs.fetchurl {
url = "mirror://pypi/p/ptpython/${name}.tar.gz";
sha256 = "e0d380fbccb03ed33a7f33d96988e66fbd286bc813c9ceea84a1b3b5615a5660";
};

meta = {
description = "An advanced Python REPL";
license = licenses.bsd3;
maintainers = with maintainers; [ mlieberman85 ];
platforms = platforms.all;
};
};
ptpython = callPackage ../development/python-modules/ptpython {};

publicsuffix = buildPythonPackage rec {
name = "publicsuffix-${version}";
Expand Down

0 comments on commit 329d844

Please sign in to comment.