depot/third_party/nixpkgs/pkgs/development/python-modules/portend/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
787 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;
};
}