nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 818 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "port-for"; 11 version = "1.0.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "kmike"; 16 repo = "port-for"; 17 tag = "v${version}"; 18 hash = "sha256-vv2xjXyUh6g7T0zGDAlOs3K+YM18wSE8rEvgSP1ZBL4="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "port_for" ]; 26 27 meta = { 28 homepage = "https://github.com/kmike/port-for"; 29 description = "Command-line utility and library that helps with TCP port managment"; 30 mainProgram = "port-for"; 31 changelog = "https://github.com/kmike/port-for/blob/v${version}/CHANGES.rst"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ bcdarwin ]; 34 }; 35}