python.pkgs.portend: actually run tests
This commit is contained in:
parent
1bba16fe19
commit
2446ff2aac
@ -1,20 +1,25 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, pytest, pytest-sugar, pytest-warnings, setuptools_scm
|
, pytest, setuptools_scm, tempora }:
|
||||||
, tempora }:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "portend";
|
pname = "portend";
|
||||||
version = "2.2";
|
version = "2.2";
|
||||||
|
|
||||||
buildInputs = [ pytest pytest-sugar pytest-warnings setuptools_scm ];
|
|
||||||
propagatedBuildInputs = [ tempora ];
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "bc48d3d99e1eaf2e9406c729f8848bfdaf87876cd3560dc3ec6c16714f529586";
|
sha256 = "bc48d3d99e1eaf2e9406c729f8848bfdaf87876cd3560dc3ec6c16714f529586";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ tempora ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Monitor TCP ports for bound or unbound states";
|
description = "Monitor TCP ports for bound or unbound states";
|
||||||
homepage = https://github.com/jaraco/portend;
|
homepage = https://github.com/jaraco/portend;
|
||||||
|
Loading…
Reference in New Issue
Block a user