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