2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-02-14 22:53:13 +00:00
|
|
|
, pytest, setuptools_scm, tempora }:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "portend";
|
2018-06-12 17:47:04 +01:00
|
|
|
version = "2.3";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 17:47:04 +01:00
|
|
|
sha256 = "b7ce7d35ea262415297cbfea86226513e77b9ee5f631d3baa11992d663963719";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2019-02-14 22:53:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pytest.ini --replace "--flake8" ""
|
|
|
|
'';
|
|
|
|
|
2018-04-20 12:00:23 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ tempora ];
|
|
|
|
|
2019-02-14 22:53:13 +00:00
|
|
|
checkInputs = [ pytest ];
|
2018-04-20 12:00:23 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Monitor TCP ports for bound or unbound states";
|
|
|
|
homepage = https://github.com/jaraco/portend;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|