ff1a94e523
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.
39 lines
884 B
Nix
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 ];
|
|
};
|
|
}
|