1{ lib, buildPythonPackage, fetchPypi
2, pytestCheckHook, setuptools-scm, tempora }:
3
4buildPythonPackage rec {
5 pname = "portend";
6 version = "3.1.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "239e3116045ea823f6df87d6168107ad75ccc0590e37242af0cc1e98c5d224e4";
11 };
12
13 nativeBuildInputs = [ setuptools-scm ];
14
15 propagatedBuildInputs = [ tempora ];
16
17 nativeCheckInputs = [ pytestCheckHook ];
18
19 # Some of the tests use localhost networking.
20 __darwinAllowLocalNetworking = true;
21
22 meta = with lib; {
23 description = "Monitor TCP ports for bound or unbound states";
24 homepage = "https://github.com/jaraco/portend";
25 license = licenses.bsd3;
26 };
27}