mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
pythonPackages.pytest-socket: init at 0.3.3
This commit is contained in:
parent
1832c1c52e
commit
7e929898d7
40
pkgs/development/python-modules/pytest-socket/default.nix
Normal file
40
pkgs/development/python-modules/pytest-socket/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user