Files
nixpkgs/pkgs/development/python-modules/port-for/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

39 lines
884 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 ];
};
}