1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, setuptools_scm, tempora, pytest-flake8 }: 3 4buildPythonPackage rec { 5 pname = "portend"; 6 version = "2.3"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "b7ce7d35ea262415297cbfea86226513e77b9ee5f631d3baa11992d663963719"; 11 }; 12 13 nativeBuildInputs = [ setuptools_scm ]; 14 15 propagatedBuildInputs = [ tempora ]; 16 17 checkInputs = [ pytest pytest-flake8 ]; 18 19 checkPhase = '' 20 py.test 21 ''; 22 23 meta = with stdenv.lib; { 24 description = "Monitor TCP ports for bound or unbound states"; 25 homepage = https://github.com/jaraco/portend; 26 license = licenses.bsd3; 27 }; 28}