at master 876 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "port-for"; 12 version = "0.7.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "kmike"; 19 repo = "port-for"; 20 tag = "v${version}"; 21 hash = "sha256-/45TQ2crmTupRgL9hgZGw5IvFKywezSIHqHFbeAkMoo="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 pythonImportsCheck = [ "port_for" ]; 28 29 meta = with lib; { 30 homepage = "https://github.com/kmike/port-for"; 31 description = "Command-line utility and library that helps with TCP port managment"; 32 mainProgram = "port-for"; 33 changelog = "https://github.com/kmike/port-for/blob/v${version}/CHANGES.rst"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ bcdarwin ]; 36 }; 37}