about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/portpicker/default.nix
blob: 65c4059b4fc262691815008188c3a42c4146421f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, psutil
, pythonOlder
}:

buildPythonPackage rec {
  pname = "portpicker";
  version = "1.6.0";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-vVB/1vlvZe4CeB8uZ06dxsmbv6bjw5mS45FiBMnUMfo=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    psutil
  ];

  pythonImportsCheck = [
    "portpicker"
  ];

  meta = with lib; {
    description = "Library to choose unique available network ports";
    mainProgram = "portserver.py";
    homepage = "https://github.com/google/python_portpicker";
    license = licenses.asl20;
    maintainers = with maintainers; [ ];
  };
}