2017-09-05 09:16:41 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-04-20 11:00:23 +00:00
|
|
|
, pytest, setuptools_scm, tempora }:
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "portend";
|
2017-10-25 18:04:35 +00:00
|
|
|
version = "2.2";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 18:04:35 +00:00
|
|
|
sha256 = "bc48d3d99e1eaf2e9406c729f8848bfdaf87876cd3560dc3ec6c16714f529586";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
2018-04-20 11:00:23 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ tempora ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2017-09-05 09:16:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Monitor TCP ports for bound or unbound states";
|
|
|
|
homepage = https://github.com/jaraco/portend;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|