2017-10-23 12:51:38 +02:00
|
|
|
{ lib
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ipython
|
|
|
|
, traitlets
|
|
|
|
, glibcLocales
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter_core";
|
2017-12-30 12:23:58 +01:00
|
|
|
version = "4.4.0";
|
2017-10-23 12:51:38 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 12:23:58 +01:00
|
|
|
sha256 = "ba70754aa680300306c699790128f6fbd8c306ee5927976cbe48adacf240c0b7";
|
2017-10-23 12:51:38 +02:00
|
|
|
};
|
|
|
|
|
2017-12-30 12:23:58 +01:00
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
2017-10-23 12:51:38 +02:00
|
|
|
propagatedBuildInputs = [ ipython traitlets ];
|
|
|
|
|
|
|
|
patches = [ ./tests_respect_pythonpath.patch ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
mkdir tmp
|
|
|
|
HOME=tmp TMPDIR=tmp LC_ALL=en_US.utf8 py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter core package. A base package on which Jupyter projects rely";
|
|
|
|
homepage = http://jupyter.org/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fridh globin ];
|
|
|
|
};
|
|
|
|
}
|