mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
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`.
42 lines
791 B
Nix
42 lines
791 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, isPy27
|
|
, mock
|
|
, ipython
|
|
, jupyter_client
|
|
, pexpect
|
|
, traitlets
|
|
, tornado
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipykernel";
|
|
version = "4.8.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c091449dd0fad7710ddd9c4a06e8b9e15277da306590bc07a3a1afa6b4453c8f";
|
|
};
|
|
|
|
buildInputs = [ nose ] ++ lib.optional isPy27 mock;
|
|
propagatedBuildInputs = [
|
|
ipython
|
|
jupyter_client
|
|
pexpect
|
|
traitlets
|
|
tornado
|
|
];
|
|
|
|
# Tests require backends.
|
|
# I don't want to add all supported backends as propagatedBuildInputs
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "IPython Kernel for Jupyter";
|
|
homepage = http://ipython.org/;
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
};
|
|
} |