nixpkgs-suyu/pkgs/development/python-modules/jedi/default.nix
2018-07-22 16:52:43 +02:00

33 lines
895 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
buildPythonPackage rec {
pname = "jedi";
version = "0.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "b409ed0f6913a701ed474a614a3bb46e6953639033e31f769ca7581da5bd1ec1";
};
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; [ garbas ];
};
}