2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2022-03-05 16:20:37 +00:00
|
|
|
, psutil
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "portpicker";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.5.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-05 16:20:37 +00:00
|
|
|
hash = "sha256-4TsUgAit6yeTz4tVvNIP3OxPdj8tO/PEX15eXR330ig=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"portpicker"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to choose unique available network ports";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/google/python_portpicker";
|
2022-03-05 16:20:37 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ danharaj ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|