connman-gtk: fix FTBFS with GCC-14 (incompatible pointer types) (#376077)
[NixPkgs.git] / pkgs / development / python-modules / portpicker / default.nix
blob61fd71319fad48256c558da8b5e60c3eed30de5b
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   psutil,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "portpicker";
12   version = "1.6.0";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-vVB/1vlvZe4CeB8uZ06dxsmbv6bjw5mS45FiBMnUMfo=";
20   };
22   nativeBuildInputs = [ setuptools ];
24   propagatedBuildInputs = [ psutil ];
26   pythonImportsCheck = [ "portpicker" ];
28   meta = with lib; {
29     description = "Library to choose unique available network ports";
30     mainProgram = "portserver.py";
31     homepage = "https://github.com/google/python_portpicker";
32     license = licenses.asl20;
33     maintainers = [ ];
34   };