Skip to content

Commit

Permalink
Merge pull request #191739 from viraptor/miniupnpc-fix-darwin
Browse files Browse the repository at this point in the history
python310Packages.miniupnpc: fix darwin build
  • Loading branch information
risicle authored Sep 19, 2022
2 parents f8263df + 9aa2bf4 commit 0851743
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/miniupnpc/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, buildPythonPackage, fetchPypi }:
{ stdenv, lib, buildPythonPackage, fetchPypi, cctools, which }:

buildPythonPackage rec {
pname = "miniupnpc";
Expand All @@ -9,8 +9,9 @@ buildPythonPackage rec {
sha256 = "0ca94zz7sr2x57j218aypxqcwkr23n8js30f3yrvvqbg929nr93y";
};

nativeBuildInputs = lib.optionals stdenv.isDarwin [ cctools which ];

meta = with lib; {
broken = stdenv.isDarwin;
description = "miniUPnP client";
homepage = "http://miniupnp.free.fr/";
license = licenses.mit;
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5705,7 +5705,9 @@ in {

minio = callPackage ../development/python-modules/minio { };

miniupnpc = callPackage ../development/python-modules/miniupnpc { };
miniupnpc = callPackage ../development/python-modules/miniupnpc {
inherit (pkgs.darwin) cctools;
};

misaka = callPackage ../development/python-modules/misaka { };

Expand Down

0 comments on commit 0851743

Please sign in to comment.