nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fastcore,
5 fetchPypi,
6 ipython,
7 setuptools,
8 traitlets,
9}:
10
11buildPythonPackage rec {
12 pname = "execnb";
13 version = "0.1.18";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-VM2WsdFICc7trCjfupL5wW0UFTzRW5RPfWs6jYpCSDM=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 fastcore
25 ipython
26 traitlets
27 ];
28
29 # no real tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "execnb" ];
33
34 meta = {
35 description = "Execute a jupyter notebook, fast, without needing jupyter";
36 homepage = "https://github.com/fastai/execnb";
37 changelog = "https://github.com/fastai/execnb/releases/tag/${version}";
38 license = lib.licenses.asl20;
39 maintainers = with lib.maintainers; [ rxiao ];
40 mainProgram = "exec_nb";
41 };
42}