1{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
2
3buildPythonPackage rec {
4 pname = "jedi";
5 version = "0.11.1";
6 name = "${pname}-${version}";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "d6e799d04d1ade9459ed0f20de47c32f2285438956a677d083d3c98def59fa97";
11 };
12
13 postPatch = ''
14 substituteInPlace requirements.txt --replace "parso==0.1.0" "parso"
15 '';
16
17 checkInputs = [ pytest glibcLocales tox pytestcov ];
18
19 propagatedBuildInputs = [ parso ];
20
21 checkPhase = ''
22 LC_ALL="en_US.UTF-8" py.test test
23 '';
24
25 # tox required for tests: https://github.com/davidhalter/jedi/issues/808
26 doCheck = false;
27
28 meta = with stdenv.lib; {
29 homepage = https://github.com/davidhalter/jedi;
30 description = "An autocompletion tool for Python that can be used for text editors";
31 license = licenses.lgpl3Plus;
32 maintainers = with maintainers; [ garbas ];
33 };
34}