blob: 35bf5d1a8be5d96d2099769c847e4e8aa74e4931 (
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
38
39
|
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
pytestCheckHook,
setuptools-scm,
tempora,
}:
buildPythonPackage rec {
pname = "portend";
version = "3.2.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-UlCjUsGclZ12fKyHi4Kdk+XcdiWlFDOZoqANxmKP+3I=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ tempora ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "portend" ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Monitor TCP ports for bound or unbound states";
homepage = "https://github.com/jaraco/portend";
license = licenses.bsd3;
};
}
|