depot/third_party/nixpkgs/pkgs/development/python-modules/portend/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

35 lines
781 B
Nix

{ 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;
sha256 = "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;
};
}