depot/third_party/nixpkgs/pkgs/development/python-modules/portend/default.nix

36 lines
781 B
Nix
Raw Normal View History

{ 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;
};
}