Skip to content

Commit

Permalink
python3Packages.widgetsnbextension: patch out unnecessary dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
samuela committed May 6, 2022
1 parent 1e7cc37 commit de16160
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/development/python-modules/widgetsnbextension/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
buildPythonPackage rec {
pname = "widgetsnbextension";
version = "3.6.0";
format = "setuptools";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-6Ep6n8ubrz1XEG4YSnOJqPjrk1v3QaXrnWCqGMwCmoA=";
hash = "sha256-6Ep6n8ubrz1XEG4YSnOJqPjrk1v3QaXrnWCqGMwCmoA=";
};

propagatedBuildInputs = [ notebook ];
# setup.py claims to require notebook, but the source doesn't have any imports
# in it.
postPatch = ''
substituteInPlace setup.py --replace "'notebook>=4.4.1'," ""
'';

propagatedBuildInputs = [ ];

# No tests in archive
doCheck = false;
Expand Down

0 comments on commit de16160

Please sign in to comment.