diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-15 11:56:28 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-17 10:02:03 +0200 |
commit | 7e929898d7c3ed6c274da84833c1aa593987af5b (patch) | |
tree | b60d0487e45960789f870766ce4af9b3b41ef592 /pkgs/development/python-modules/pytest-socket | |
parent | 1832c1c52e30964ad29ab858e6c68111bce87b35 (diff) |
pythonPackages.pytest-socket: init at 0.3.3
Diffstat (limited to 'pkgs/development/python-modules/pytest-socket')
-rw-r--r-- | pkgs/development/python-modules/pytest-socket/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-socket/default.nix b/pkgs/development/python-modules/pytest-socket/default.nix new file mode 100644 index 0000000000000..a28970a8ec45e --- /dev/null +++ b/pkgs/development/python-modules/pytest-socket/default.nix @@ -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 ]; + }; +} |