2020-08-15 20:08:03 +00:00
|
|
|
# Taken from a past commit of nixpkgs
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
|
2020-08-15 20:08:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jedi";
|
|
|
|
|
|
|
|
# TODO: Remove this package when version incompatibility issue with
|
|
|
|
# python3Packages.jedi is resolved.
|
|
|
|
#
|
|
|
|
# Upstream requirements:
|
|
|
|
# https://github.com/CoatiSoftware/SourcetrailPythonIndexer#requirements
|
|
|
|
version = "0.17.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "86ed7d9b750603e4ba582ea8edc678657fb4007894a12bcf6f4bb97892f31d20";
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-15 20:08:03 +00:00
|
|
|
homepage = "https://github.com/davidhalter/jedi";
|
|
|
|
description = "An autocompletion tool for Python that can be used for text editors";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
};
|
|
|
|
}
|