nixpkgs/pkgs/development/python-modules/jedi/default.nix

35 lines
915 B
Nix
Raw Normal View History

2017-10-25 21:04:35 +03:00
{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
2017-04-20 14:42:20 +03:00
buildPythonPackage rec {
pname = "jedi";
2018-05-24 13:19:56 +03:00
version = "0.12.0";
2017-04-20 14:42:20 +03:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2018-05-24 13:19:56 +03:00
sha256 = "1bcr7csx4xil1iwmk03d79jis0bkmgi9k0kir3xa4rmwqsagcwhr";
2017-04-20 14:42:20 +03:00
};
postPatch = ''
substituteInPlace requirements.txt --replace "parso==0.1.0" "parso"
'';
2017-09-15 02:47:07 +03:00
checkInputs = [ pytest glibcLocales tox pytestcov ];
2017-04-20 14:42:20 +03:00
2017-10-25 21:04:35 +03:00
propagatedBuildInputs = [ parso ];
2017-04-20 14:42:20 +03:00
checkPhase = ''
2017-09-01 21:05:56 +03:00
LC_ALL="en_US.UTF-8" py.test test
2017-04-20 14:42:20 +03:00
'';
2017-09-15 02:47:07 +03:00
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
doCheck = false;
2017-04-20 14:42:20 +03:00
2017-09-15 02:47:07 +03:00
meta = with stdenv.lib; {
2017-04-20 14:42:20 +03:00
homepage = https://github.com/davidhalter/jedi;
description = "An autocompletion tool for Python that can be used for text editors";
2017-09-15 02:47:07 +03:00
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ garbas ];
2017-04-20 14:42:20 +03:00
};
}