1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 pytestCheckHook,
7 setuptools-scm,
8 tempora,
9}:
10
11buildPythonPackage rec {
12 pname = "portend";
13 version = "3.2.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-UlCjUsGclZ12fKyHi4Kdk+XcdiWlFDOZoqANxmKP+3I=";
21 };
22
23 nativeBuildInputs = [ setuptools-scm ];
24
25 propagatedBuildInputs = [ tempora ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "portend" ];
30
31 # Some of the tests use localhost networking.
32 __darwinAllowLocalNetworking = true;
33
34 meta = with lib; {
35 description = "Monitor TCP ports for bound or unbound states";
36 homepage = "https://github.com/jaraco/portend";
37 license = licenses.bsd3;
38 };
39}