nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 34 lines 646 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, psutil 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "portpicker"; 10 version = "1.5.0"; 11 format = "pyproject"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-4TsUgAit6yeTz4tVvNIP3OxPdj8tO/PEX15eXR330ig="; 18 }; 19 20 propagatedBuildInputs = [ 21 psutil 22 ]; 23 24 pythonImportsCheck = [ 25 "portpicker" 26 ]; 27 28 meta = with lib; { 29 description = "Library to choose unique available network ports"; 30 homepage = "https://github.com/google/python_portpicker"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ danharaj ]; 33 }; 34}