Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / port-for / default.nix
blob9efcd9acfaff0734e9141a1bf69e70b6e388b47f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , setuptools
7 }:
9 buildPythonPackage rec {
10   pname = "port-for";
11   version = "0.7.1";
12   format = "pyproject";
14   disabled = pythonOlder "3.8";
16   src = fetchFromGitHub {
17     owner = "kmike";
18     repo = "port-for";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-/45TQ2crmTupRgL9hgZGw5IvFKywezSIHqHFbeAkMoo=";
21   };
23   nativeBuildInputs = [ setuptools ];
25   nativeCheckInputs = [
26     pytestCheckHook
27   ];
28   pythonImportsCheck = [ "port_for" ];
30   meta = with lib; {
31     homepage = "https://github.com/kmike/port-for";
32     description = "Command-line utility and library that helps with TCP port managment";
33     changelog = "https://github.com/kmike/port-for/blob/v${version}/CHANGES.rst";
34     license = licenses.mit;
35     maintainers = with maintainers; [ bcdarwin ];
36   };