1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, psutil
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "portpicker";
11 version = "1.6.0";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-vVB/1vlvZe4CeB8uZ06dxsmbv6bjw5mS45FiBMnUMfo=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 ];
24
25 propagatedBuildInputs = [
26 psutil
27 ];
28
29 pythonImportsCheck = [
30 "portpicker"
31 ];
32
33 meta = with lib; {
34 description = "Library to choose unique available network ports";
35 homepage = "https://github.com/google/python_portpicker";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ ];
38 };
39}