nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 770 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, notebook 5, ipywidgets 6}: 7 8buildPythonPackage rec { 9 pname = "widgetsnbextension"; 10 version = "3.6.0"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-6Ep6n8ubrz1XEG4YSnOJqPjrk1v3QaXrnWCqGMwCmoA="; 16 }; 17 18 # setup.py claims to require notebook, but the source doesn't have any imports 19 # in it. 20 postPatch = '' 21 substituteInPlace setup.py --replace "'notebook>=4.4.1'," "" 22 ''; 23 24 propagatedBuildInputs = [ ]; 25 26 # No tests in archive 27 doCheck = false; 28 29 meta = { 30 description = "IPython HTML widgets for Jupyter"; 31 homepage = "http://ipython.org/"; 32 license = ipywidgets.meta.license; # Build from same repo 33 maintainers = with lib.maintainers; [ fridh ]; 34 }; 35}