forked from mirrors/nixpkgs
30 lines
782 B
Nix
30 lines
782 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jedi";
|
|
version = "0.17.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0qrgyn0znpib485hk0mi68wab6nhwqd3pyjxvp7jn6kijr7mszc0";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|