1{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
2
3buildPythonPackage rec {
4 pname = "jedi";
5 version = "0.13.3";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "2bb0603e3506f708e792c7f4ad8fc2a7a9d9c2d292a358fbbd58da531695595b";
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; [ ];
32 };
33}