ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
51 lines
943 B
Nix
51 lines
943 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, nose
|
|
, glibcLocales
|
|
, entrypoints
|
|
, bleach
|
|
, mistune
|
|
, jinja2
|
|
, pygments
|
|
, traitlets
|
|
, testpath
|
|
, jupyter_core
|
|
, nbformat
|
|
, nbconvert
|
|
, ipykernel
|
|
, pandocfilters
|
|
, tornado
|
|
, jupyter_client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbconvert";
|
|
version = "5.3.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1f9dkvpx186xjm4xab0qbph588mncp4vqk3fmxrsnqs43mks9c8j";
|
|
};
|
|
|
|
checkInputs = [ nose pytest glibcLocales ];
|
|
|
|
propagatedBuildInputs = [
|
|
entrypoints bleach mistune jinja2 pygments traitlets testpath
|
|
jupyter_core nbformat ipykernel pandocfilters tornado jupyter_client
|
|
];
|
|
|
|
checkPhase = ''
|
|
mkdir tmp
|
|
LC_ALL=en_US.UTF-8 HOME=`realpath tmp` py.test -v
|
|
'';
|
|
|
|
meta = {
|
|
description = "Converting Jupyter Notebooks";
|
|
homepage = http://jupyter.org/;
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fridh globin ];
|
|
};
|
|
}
|