10 pname = "ephemeral-port-reserve";
14 inherit pname version;
15 format = "setuptools";
17 src = fetchFromGitHub {
19 repo = "ephemeral-port-reserve";
21 hash = "sha256-R6NRpfaT05PO/cTWgCakiGfCuCyucjVOXbAezn5x1cU=";
24 nativeCheckInputs = [ pytestCheckHook ];
26 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
27 # can't find hostname in our darwin build environment
31 __darwinAllowLocalNetworking = true;
33 pythonImportsCheck = [ "ephemeral_port_reserve" ];
36 description = "Find an unused port, reliably";
37 mainProgram = "ephemeral-port-reserve";
38 homepage = "https://github.com/Yelp/ephemeral-port-reserve/";
39 license = licenses.mit;
40 maintainers = with maintainers; [ hexa ];