nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 59 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, fetchpatch 6, python 7, ipython 8, traitlets 9, glibcLocales 10, mock 11, pytestCheckHook 12, nose 13}: 14 15buildPythonPackage rec { 16 pname = "jupyter_core"; 17 version = "4.9.2"; 18 disabled = !isPy3k; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "sha256-1puuuf+xKLjNJlf88nA/icdp0Wc8hRgSEZ46Kg6TrZo="; 23 }; 24 25 checkInputs = [ pytestCheckHook mock glibcLocales nose ]; 26 propagatedBuildInputs = [ ipython traitlets ]; 27 28 patches = [ 29 # install jupyter_core/*.py files 30 (fetchpatch { 31 url = "https://github.com/jupyter/jupyter_core/pull/253/commits/3bbeaebec0a53520523162d5e8d5c6ca02b1b782.patch"; 32 sha256 = "sha256-QeAfj7wLz4egVUPMAgrZ9Wn/Tv60LrIXLgHGVoH41wQ="; 33 }) 34 ./tests_respect_pythonpath.patch 35 ]; 36 37 preCheck = '' 38 export HOME=$TMPDIR 39 export LC_ALL=en_US.utf8 40 ''; 41 42 disabledTests = [ 43 # creates a temporary script, which isn't aware of PYTHONPATH 44 "test_argv0" 45 ]; 46 47 postCheck = '' 48 $out/bin/jupyter --help > /dev/null 49 ''; 50 51 pythonImportsCheck = [ "jupyter_core" ]; 52 53 meta = with lib; { 54 description = "Jupyter core package. A base package on which Jupyter projects rely"; 55 homepage = "https://jupyter.org/"; 56 license = licenses.bsd3; 57 maintainers = with maintainers; [ fridh ]; 58 }; 59}