Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 66 lines 1.2 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, pythonOlder 6# Build dependencies 7, glibcLocales 8# Test dependencies 9, nose 10, pygments 11# Runtime dependencies 12, jedi 13, decorator 14, pickleshare 15, traitlets 16, prompt_toolkit 17, pexpect 18, appnope 19, backcall 20, fetchpatch 21}: 22 23buildPythonPackage rec { 24 pname = "ipython"; 25 version = "7.6.1"; 26 disabled = pythonOlder "3.5"; 27 28 src = fetchPypi { 29 inherit pname version; 30 sha256 = "11067ab11d98b1e6c7f0993506f7a5f8a91af420f7e82be6575fcb7a6ca372a0"; 31 }; 32 33 prePatch = lib.optionalString stdenv.isDarwin '' 34 substituteInPlace setup.py --replace "'gnureadline'" " " 35 ''; 36 37 buildInputs = [ glibcLocales ]; 38 39 checkInputs = [ nose pygments ]; 40 41 propagatedBuildInputs = [ 42 jedi 43 decorator 44 pickleshare 45 traitlets 46 prompt_toolkit 47 pygments 48 pexpect 49 backcall 50 ] ++ lib.optionals stdenv.isDarwin [appnope]; 51 52 LC_ALL="en_US.UTF-8"; 53 54 doCheck = false; # Circular dependency with ipykernel 55 56 checkPhase = '' 57 nosetests 58 ''; 59 60 meta = { 61 description = "IPython: Productive Interactive Computing"; 62 homepage = http://ipython.org/; 63 license = lib.licenses.bsd3; 64 maintainers = with lib.maintainers; [ bjornfor fridh ]; 65 }; 66}