summary refs log tree commit diff
path: root/pkgs/development/python-modules/port-for/default.nix
blob: 9efcd9acfaff0734e9141a1bf69e70b6e388b47f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ 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";
    changelog = "https://github.com/kmike/port-for/blob/v${version}/CHANGES.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ bcdarwin ];
  };
}