1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchPypi, 6 setuptools, 7 cctools, 8 which, 9}: 10 11buildPythonPackage rec { 12 pname = "miniupnpc"; 13 version = "2.3.3"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-7l6Vffgo0vocw2TmDFg9EEOREIiPCGyRggcclqN0sq0="; 19 }; 20 21 build-system = [ 22 setuptools 23 ]; 24 25 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ 26 cctools 27 which 28 ]; 29 30 meta = with lib; { 31 description = "MiniUPnP client"; 32 homepage = "http://miniupnp.free.fr/"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ peterhoeg ]; 35 }; 36}