nixpkgs/pkgs/development/python-modules/port-for/default.nix
2024-05-22 17:32:03 +02:00

38 lines
886 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "port-for";
version = "0.7.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "kmike";
repo = "port-for";
rev = "refs/tags/v${version}";
hash = "sha256-/45TQ2crmTupRgL9hgZGw5IvFKywezSIHqHFbeAkMoo=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "port_for" ];
meta = with lib; {
homepage = "https://github.com/kmike/port-for";
description = "Command-line utility and library that helps with TCP port managment";
mainProgram = "port-for";
changelog = "https://github.com/kmike/port-for/blob/v${version}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}