From b2cdf50d4ee779c67800c5010e8069eecc07c06b Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 26 Feb 2022 00:47:32 +0100 Subject: [PATCH] packages: add poetry2nix support --- packages/packages.nix | 3 +++ packages/poetry2nix-overrides/default.nix | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 packages/poetry2nix-overrides/default.nix diff --git a/packages/packages.nix b/packages/packages.nix index d8ab905..3cae71a 100644 --- a/packages/packages.nix +++ b/packages/packages.nix @@ -5,6 +5,9 @@ let systems = [ system ]; config.overridesDirs = [ ./dream2nix-overrides ]; }; + poetry2nix = pkgs.poetry2nix.overrideScope' (final: prev: { + defaultPoetryOverrides = prev.defaultPoetryOverrides.extend (import ./poetry2nix-overrides); + }); in { ghost = (dream2nix.riseAndShine { diff --git a/packages/poetry2nix-overrides/default.nix b/packages/poetry2nix-overrides/default.nix new file mode 100644 index 0000000..9bc15cf --- /dev/null +++ b/packages/poetry2nix-overrides/default.nix @@ -0,0 +1,7 @@ +final: prev: { + py-multibase = prev.py-multibase.overridePythonAttrs (old: { + nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ + final.pytestrunner + ]; + }); +} \ No newline at end of file