depot/third_party/nixpkgs/pkgs/development/python-modules/portpicker/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

39 lines
695 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, psutil
, pythonOlder
}:
buildPythonPackage rec {
pname = "portpicker";
version = "1.5.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-xVaDrXJfXACkG8fbAiUiPovgJLH6Vk0DntM5Dk/Uj7M=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
psutil
];
pythonImportsCheck = [
"portpicker"
];
meta = with lib; {
description = "Library to choose unique available network ports";
homepage = "https://github.com/google/python_portpicker";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}