2017-10-23 12:51:38 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-07 20:09:06 +02:00
|
|
|
, isPy3k
|
2017-10-23 12:51:38 +02:00
|
|
|
, ipython
|
|
|
|
, traitlets
|
|
|
|
, glibcLocales
|
|
|
|
, mock
|
|
|
|
, pytest
|
2019-10-16 18:11:56 +02:00
|
|
|
, nose
|
2017-10-23 12:51:38 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter_core";
|
2021-11-25 14:46:56 -08:00
|
|
|
version = "4.9.1";
|
2021-06-07 20:09:06 +02:00
|
|
|
disabled = !isPy3k;
|
2017-10-23 12:51:38 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-25 14:46:56 -08:00
|
|
|
sha256 = "dce8a7499da5a53ae3afd5a9f4b02e5df1d57250cf48f3ad79da23b4778cd6fa";
|
2017-10-23 12:51:38 +02:00
|
|
|
};
|
|
|
|
|
2019-10-16 18:11:56 +02:00
|
|
|
checkInputs = [ pytest mock glibcLocales nose ];
|
2017-10-23 12:51:38 +02:00
|
|
|
propagatedBuildInputs = [ ipython traitlets ];
|
|
|
|
|
|
|
|
patches = [ ./tests_respect_pythonpath.patch ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-08-02 17:30:44 -07:00
|
|
|
HOME=$TMPDIR LC_ALL=en_US.utf8 py.test
|
2017-10-23 12:51:38 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter core package. A base package on which Jupyter projects rely";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://jupyter.org/";
|
2017-10-23 12:51:38 +02:00
|
|
|
license = licenses.bsd3;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ fridh ];
|
2017-10-23 12:51:38 +02:00
|
|
|
};
|
|
|
|
}
|