summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathis Antony <sveitser@gmail.com>2023-11-25 15:07:44 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-11-26 03:26:48 +0000
commit86cf84458add81f75b28df1b7ca8e34bd9e989aa (patch)
tree326b3a3ae74ce5954b5aaa0fdd964491f60fd493
parentMerge pull request #269974 from NixOS/backport-269292-to-release-23.11 (diff)
downloadnixpkgs-origin/backport-269899-to-release-23.11.tar.gz
pythonPackages.pyheck: fix build on darwinorigin/backport-269899-to-release-23.11
- Add libiconv dependency (cherry picked from commit 07390fcb4aebd1dace7fcb238e9f285ca506efb5)
-rw-r--r--pkgs/development/python-modules/pyheck/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyheck/default.nix b/pkgs/development/python-modules/pyheck/default.nix
index 4a32babb69fb..123ebe3db978 100644
--- a/pkgs/development/python-modules/pyheck/default.nix
+++ b/pkgs/development/python-modules/pyheck/default.nix
@@ -2,11 +2,13 @@
, buildPythonPackage
, cargo
, fetchFromGitHub
+, libiconv
, poetry-core
, pytestCheckHook
, pythonOlder
, rustc
, rustPlatform
+, stdenv
}:
buildPythonPackage rec {
@@ -39,6 +41,8 @@ buildPythonPackage rec {
rustPlatform.maturinBuildHook
];
+ buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
+
nativeCheckInputs = [
pytestCheckHook
];