Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }: 2 3buildPythonPackage rec { 4 pname = "jedi"; 5 # switch back to stable version on the next release. 6 # current stable is incompatible with parso 7 version = "2020-08-06"; 8 9 src = fetchFromGitHub { 10 owner = "davidhalter"; 11 repo = "jedi"; 12 rev = "216f976fd5cab7a460e5d287e853d11759251e52"; 13 sha256 = "1kb2ajzigadl95pnwglg8fxz9cvpg9hx30hqqj91jkgrc7djdldj"; 14 fetchSubmodules = true; 15 }; 16 17 checkInputs = [ pytest glibcLocales tox pytestcov ]; 18 19 propagatedBuildInputs = [ parso ]; 20 21 checkPhase = '' 22 LC_ALL="en_US.UTF-8" py.test test 23 ''; 24 25 # tox required for tests: https://github.com/davidhalter/jedi/issues/808 26 doCheck = false; 27 28 meta = with stdenv.lib; { 29 homepage = "https://github.com/davidhalter/jedi"; 30 description = "An autocompletion tool for Python that can be used for text editors"; 31 license = licenses.lgpl3Plus; 32 maintainers = with maintainers; [ ]; 33 }; 34}