nixpkgs/pkgs/development/python-modules/jupyter_core/default.nix
2021-10-11 01:22:03 +02:00

38 lines
793 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, ipython
, traitlets
, glibcLocales
, mock
, pytest
, nose
}:
buildPythonPackage rec {
pname = "jupyter_core";
version = "4.8.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "ef210dcb4fca04de07f2ead4adf408776aca94d17151d6f750ad6ded0b91ea16";
};
checkInputs = [ pytest mock glibcLocales nose ];
propagatedBuildInputs = [ ipython traitlets ];
patches = [ ./tests_respect_pythonpath.patch ];
checkPhase = ''
HOME=$TMPDIR LC_ALL=en_US.utf8 py.test
'';
meta = with lib; {
description = "Jupyter core package. A base package on which Jupyter projects rely";
homepage = "https://jupyter.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ fridh ];
};
}