nixpkgs/pkgs/development/python-modules/execnb/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 lines
733 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fastcore
, traitlets
, ipython
, pythonOlder
}:
buildPythonPackage rec {
pname = "execnb";
version = "0.1.5";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nuAp4OMAfA3u3DJyORjFw7y7ZLsLCKEfxSFIXqNh+k0=";
};
propagatedBuildInputs = [ fastcore traitlets ipython ];
# no real tests
doCheck = false;
pythonImportsCheck = [ "execnb" ];
meta = with lib; {
homepage = "https://github.com/fastai/execnb";
description = "Execute a jupyter notebook, fast, without needing jupyter";
mainProgram = "exec_nb";
license = licenses.asl20;
maintainers = with maintainers; [ rxiao ];
};
}