nixpkgs/pkgs/development/python-modules/portend/default.nix
Robert Schütz e70cf2cd44 python.pkgs.portend: disable flake8 tests
They fail with many occurences of `E117 over-indented`.
2019-02-17 14:40:52 +01:00

33 lines
689 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pytest, setuptools_scm, tempora }:
buildPythonPackage rec {
pname = "portend";
version = "2.3";
src = fetchPypi {
inherit pname version;
sha256 = "b7ce7d35ea262415297cbfea86226513e77b9ee5f631d3baa11992d663963719";
};
postPatch = ''
substituteInPlace pytest.ini --replace "--flake8" ""
'';
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;
};
}