From 0bdb1c1d30c8eb63610a483f63704ed53c9ad7d0 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 22 Sep 2023 00:50:52 +0300 Subject: [PATCH] python310Packages.amaranth: fix dependencies pdm-backend should be pulled from the matching Python package set (i.e. callPackage args), and should be in nativeBuildInputs, as it's a build time dependency. pdm itself is not required. --- pkgs/development/python-modules/amaranth/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/amaranth/default.nix b/pkgs/development/python-modules/amaranth/default.nix index a92e33ebe52..ad2cacb2ced 100644 --- a/pkgs/development/python-modules/amaranth/default.nix +++ b/pkgs/development/python-modules/amaranth/default.nix @@ -2,9 +2,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub -, fetchpatch -, pdm -, python3 +, pdm-backend , pyvcd , jinja2 , importlib-resources @@ -34,13 +32,12 @@ buildPythonPackage rec { nativeBuildInputs = [ git + pdm-backend ]; propagatedBuildInputs = [ jinja2 - pdm pyvcd - python3.pkgs.pdm-backend ] ++ lib.optional (pythonOlder "3.9") importlib-resources ++ lib.optional (pythonOlder "3.8") importlib-metadata;