summary refs log tree commit diff
path: root/pkgs/development/python-modules/portend/default.nix
blob: 3559053481e1588659c1544b9333e9f1158d441f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, buildPythonPackage, fetchPypi
, pytest, setuptools_scm, tempora }:

buildPythonPackage rec {
  pname = "portend";
  version = "2.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "bc48d3d99e1eaf2e9406c729f8848bfdaf87876cd3560dc3ec6c16714f529586";
  };

  nativeBuildInputs = [ setuptools_scm ];

  propagatedBuildInputs = [ tempora ];

  checkInputs = [ pytest ];

  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    description = "Monitor TCP ports for bound or unbound states";
    homepage = https://github.com/jaraco/portend;
    license = licenses.bsd3;
  };
}