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

36 lines
960 B
Nix
Raw Normal View History

2017-10-25 19:04:35 +01:00
{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
2017-04-20 12:42:20 +01:00
buildPythonPackage rec {
pname = "jedi";
2020-07-31 09:56:40 +01:00
version = "0.17.2";
2017-04-20 12:42:20 +01:00
src = fetchPypi {
inherit pname version;
2020-07-31 09:56:40 +01:00
sha256 = "86ed7d9b750603e4ba582ea8edc678657fb4007894a12bcf6f4bb97892f31d20";
2017-04-20 12:42:20 +01:00
};
2017-09-15 00:47:07 +01:00
checkInputs = [ pytest glibcLocales tox pytestcov ];
2017-04-20 12:42:20 +01:00
2017-10-25 19:04:35 +01:00
propagatedBuildInputs = [ parso ];
# remove next bump, >=0.17.2, already fixed in master
prePatch = ''
substituteInPlace requirements.txt \
--replace "parso>=0.7.0,<0.8.0" "parso"
'';
2017-04-20 12:42:20 +01:00
checkPhase = ''
2017-09-01 19:05:56 +01:00
LC_ALL="en_US.UTF-8" py.test test
2017-04-20 12:42:20 +01:00
'';
2017-09-15 00:47:07 +01:00
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
doCheck = false;
2017-04-20 12:42:20 +01:00
2017-09-15 00:47:07 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/davidhalter/jedi";
2017-04-20 12:42:20 +01:00
description = "An autocompletion tool for Python that can be used for text editors";
2017-09-15 00:47:07 +01:00
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ ];
2017-04-20 12:42:20 +01:00
};
}