Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, buildPythonPackage 4, pythonOlder 5, fetchFromGitHub 6, attrs 7, django_3 8, pytestCheckHook 9, parso 10}: 11 12buildPythonPackage rec { 13 pname = "jedi"; 14 version = "0.19.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "davidhalter"; 21 repo = "jedi"; 22 rev = "v${version}"; 23 hash = "sha256-Hw0+KQkB9ICWbBJDQQmHyKngzJlJ8e3wlpe4aSrlkvo="; 24 fetchSubmodules = true; 25 }; 26 27 propagatedBuildInputs = [ parso ]; 28 29 nativeCheckInputs = [ 30 attrs 31 django_3 32 pytestCheckHook 33 ]; 34 35 preCheck = '' 36 export HOME=$TMPDIR 37 ''; 38 39 disabledTests = [ 40 # sensitive to platform, causes false negatives on darwin 41 "test_import" 42 ] ++ lib.optionals (stdenv.isAarch64 && pythonOlder "3.9") [ 43 # AssertionError: assert 'foo' in ['setup'] 44 "test_init_extension_module" 45 ]; 46 47 meta = with lib; { 48 description = "An autocompletion tool for Python that can be used for text editors"; 49 homepage = "https://github.com/davidhalter/jedi"; 50 changelog = "https://github.com/davidhalter/jedi/blob/${version}/CHANGELOG.rst"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ ]; 53 }; 54}