pythonPackages.pytest-socket: init at 0.3.3

This commit is contained in:
Chris Ostrouchov 2019-07-15 11:56:28 -04:00 committed by Frederik Rietdijk
parent 1832c1c52e
commit 7e929898d7
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
}:
buildPythonPackage rec {
pname = "pytest-socket";
version = "0.3.3";
src = fetchFromGitHub {
owner = "miketheman";
repo = pname;
rev = version;
sha256 = "1jbzkyp4xki81h01yl4vg3nrg9b6shsk1ryrmkaslffyhrqnj8zh";
};
propagatedBuildInputs = [
pytest
];
checkInputs = [
pytest
];
checkPhase = ''
pytest
'';
# unsurprisingly pytest-socket require network for majority of tests
# to pass...
doCheck = false;
meta = with lib; {
description = "Pytest Plugin to disable socket calls during tests";
homepage = https://github.com/miketheman/pytest-socket;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View file

@ -1965,6 +1965,8 @@ in {
pytest-shutil = callPackage ../development/python-modules/pytest-shutil { };
pytest-socket = callPackage ../development/python-modules/pytest-socket { };
pytestcov = callPackage ../development/python-modules/pytest-cov { };
pytest-expect = callPackage ../development/python-modules/pytest-expect { };