git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29405 from disassembler/jedi

jedi: disable tests

commitf5ea99f195bebc1b64106bb91cf6d4cc0f4d655a authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateFri 15 Sep 2017, 12:16 (9 years ago) parentfdbe81b6515402
4 files changed+35−28
pkgs/development/python-modules/altair/default.nix+2 pkgs/development/python-modules/jedi/default.nix+7−12 pkgs/development/python-modules/ptpython/default.nix+25 pkgs/top-level/python-packages.nix+1−16
pkgs/development/python-modules/altair/default.nix+2
@@ -19,6 +19,8 @@ buildPythonPackage rec {
1919 '';
2020
2121 propagatedBuildInputs = [ vega pandas ipython traitlets ];
22+ # Disabling checks, MockRequest object has no method send()
23+ doCheck = false;
2224
2325 meta = with stdenv.lib; {
2426 description = "A declarative statistical visualization library for Python.";
pkgs/development/python-modules/jedi/default.nix+7−12
@@ -1,9 +1,4 @@
1−{ lib
2−, buildPythonPackage
3−, fetchPypi
4−, pytest
5−, glibcLocales
6−}:
1+{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov }:
72
83buildPythonPackage rec {
94 pname = "jedi";
@@ -15,19 +10,19 @@ buildPythonPackage rec {
1510 sha256 = "7abb618cac6470ebbd142e59c23daec5e6e063bfcecc8a43a037d2ab57276f4e";
1611 };
1712
18− checkInputs = [ pytest glibcLocales ];
13+ checkInputs = [ pytest glibcLocales tox pytestcov ];
1914
2015 checkPhase = ''
2116 LC_ALL="en_US.UTF-8" py.test test
2217 '';
2318
24− # 7 failed
25− #doCheck = false;
19+ # tox required for tests: https://github.com/davidhalter/jedi/issues/808
20+ doCheck = false;
2621
27− meta = {
22+ meta = with stdenv.lib; {
2823 homepage = https://github.com/davidhalter/jedi;
2924 description = "An autocompletion tool for Python that can be used for text editors";
30− license = lib.licenses.lgpl3Plus;
31− maintainers = with lib.maintainers; [ garbas ];
25+ license = licenses.lgpl3Plus;
26+ maintainers = with maintainers; [ garbas ];
3227 };
3328}
pkgs/development/python-modules/ptpython/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, buildPythonPackage, fetchPypi, wcwidth, six, prompt_toolkit, docopt
2+, jedi, pygments }:
3+
4+buildPythonPackage rec {
5+ pname = "ptpython";
6+ version = "0.41";
7+ name = "${pname}-${version}";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "1hcaaadkp5n37hxggraynifa33wx1akklzvf6y4rvgjxbjl2g2x7";
12+ };
13+
14+ propagatedBuildInputs = [ wcwidth six prompt_toolkit docopt jedi pygments ];
15+
16+ # no tests to run
17+ doCheck = false;
18+
19+ meta = with stdenv.lib; {
20+ description = "An advanced Python REPL";
21+ license = licenses.bsd3;
22+ maintainers = with maintainers; [ mlieberman85 ];
23+ platforms = platforms.all;
24+ };
25+}
pkgs/top-level/python-packages.nix+1−16
@@ -16328,22 +16328,7 @@ in {
1632816328 };
1632916329 };
1633016330
16331− ptpython = buildPythonPackage rec {
16332− name = "ptpython-0.35";
16333− propagatedBuildInputs = with self;
16334− [ wcwidth six prompt_toolkit docopt jedi pygments];
16335− src = pkgs.fetchurl {
16336− url = "mirror://pypi/p/ptpython/${name}.tar.gz";
16337− sha256 = "e0d380fbccb03ed33a7f33d96988e66fbd286bc813c9ceea84a1b3b5615a5660";
16338− };
16339−
16340− meta = {
16341− description = "An advanced Python REPL";
16342− license = licenses.bsd3;
16343− maintainers = with maintainers; [ mlieberman85 ];
16344− platforms = platforms.all;
16345− };
16346− };
16331+ ptpython = callPackage ../development/python-modules/ptpython {};
1634716332
1634816333 publicsuffix = buildPythonPackage rec {
1634916334 name = "publicsuffix-${version}";