3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/jedi/default.nix
2019-10-27 16:26:45 +01:00

34 lines
888 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
buildPythonPackage rec {
pname = "jedi";
version = "0.15.1";
src = fetchPypi {
inherit pname version;
sha256 = "ba859c74fa3c966a22f2aeebe1b74ee27e2a462f56d3f5f7ca4a59af61bfe42e";
};
postPatch = ''
substituteInPlace requirements.txt --replace "parso==0.1.0" "parso"
'';
checkInputs = [ pytest glibcLocales tox pytestcov ];
propagatedBuildInputs = [ parso ];
checkPhase = ''
LC_ALL="en_US.UTF-8" py.test test
'';
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/davidhalter/jedi;
description = "An autocompletion tool for Python that can be used for text editors";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ ];
};
}