Skip to content

Commit

Permalink
refactor(dev-deps): remove unnecessary poetry2nix overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 20, 2022
1 parent 1301183 commit 5ed95bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions poetry-overrides.nix
@@ -1,30 +1,10 @@
self: super: {
mkdocstrings = super.mkdocstrings.overridePythonAttrs (_: {
# patch the installed mkdocstrings sources to fix jinja2 imports
#
# strip the first two levels "a/src/" when patching since we're in site-packages
# just above mkdocstrings
postInstall = ''
pushd "$out/${self.python.sitePackages}"
patch -p2 < "${self.pkgs.fetchpatch {
name = "fix-jinja2-imports.patch";
url = "https://github.com/mkdocstrings/mkdocstrings/commit/b37722716b1e0ed6393ec71308dfb0f85e142f3b.patch";
hash = "sha256-DD1SjEvs5HBlSRLrqP3jhF/yoeWkF7F3VXCD1gyt5Fc=";
}}"
popd
'';
});

# `wheel` cannot be used as a wheel to unpack itself, since that would
# require itself (infinite recursion)
wheel = super.wheel.override { preferWheel = false; };

ipython-genutils = self.ipython_genutils;

# without this we won't pick up the necessary patches to nbconvert's paths to
# jupyter in the nix store
nbconvert = super.nbconvert.override { preferWheel = false; };

# TODO: Build grpcio from src on darwin because macOS 12_0 wheels won't install
# TODO: Remove when the nix version of `pip` is upgraded?
grpcio = super.grpcio.override { preferWheel = !self.pkgs.stdenv.isDarwin; };
Expand Down

0 comments on commit 5ed95bc

Please sign in to comment.