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`.
37 lines
784 B
Nix
37 lines
784 B
Nix
{ lib
|
|
, python
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ipython
|
|
, traitlets
|
|
, glibcLocales
|
|
, mock
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter_core";
|
|
version = "4.4.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ba70754aa680300306c699790128f6fbd8c306ee5927976cbe48adacf240c0b7";
|
|
};
|
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
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 ];
|
|
};
|
|
}
|