blob: 9f8bfa0fce40347933a3123a43cb94e2e33557e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest,
}:
buildPythonPackage rec {
pname = "pytest-socket";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "miketheman";
repo = "pytest-socket";
tag = version;
hash = "sha256-19YF3q85maCVdVg2HOOPbN45RNjBf6kiFAhLut8B2tQ=";
};
nativeBuildInputs = [ poetry-core ];
buildInputs = [ pytest ];
# pytest-socket require network for majority of tests
doCheck = false;
pythonImportsCheck = [ "pytest_socket" ];
meta = {
description = "Pytest Plugin to disable socket calls during tests";
homepage = "https://github.com/miketheman/pytest-socket";
changelog = "https://github.com/miketheman/pytest-socket/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|