nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 32 lines 644 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 psutil, 7}: 8 9buildPythonPackage rec { 10 pname = "portpicker"; 11 version = "1.6.0"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-vVB/1vlvZe4CeB8uZ06dxsmbv6bjw5mS45FiBMnUMfo="; 17 }; 18 19 nativeBuildInputs = [ setuptools ]; 20 21 propagatedBuildInputs = [ psutil ]; 22 23 pythonImportsCheck = [ "portpicker" ]; 24 25 meta = { 26 description = "Library to choose unique available network ports"; 27 mainProgram = "portserver.py"; 28 homepage = "https://github.com/google/python_portpicker"; 29 license = lib.licenses.asl20; 30 maintainers = [ ]; 31 }; 32}