mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +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`.
49 lines
968 B
Nix
49 lines
968 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, ipykernel
|
|
, isPy27
|
|
, python
|
|
, pexpect
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bash_kernel";
|
|
version = "0.7.1";
|
|
format = "flit";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1s2kc7m52kq28b4j1q3456g5ani6nmq4n0rpbqi3yvh7ks0rby19";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://patch-diff.githubusercontent.com/raw/takluyver/bash_kernel/pull/69.diff";
|
|
sha256 = "1qd7qjjmcph4dk6j0bl31h2fdmfiyyazvrc9xqqj8y21ki2sl33j";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [ ipykernel pexpect ];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
preBuild = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
postInstall = ''
|
|
${python.interpreter} -m bash_kernel.install --prefix $out
|
|
'';
|
|
|
|
meta = {
|
|
description = "Bash Kernel for Jupyter";
|
|
homepage = "https://github.com/takluyver/bash_kernel";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ zimbatm ];
|
|
};
|
|
}
|