blob: 67ee191b85cb14a347a87432ba6830602d8f06ef (
plain) (
blame)
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
38
39
40
41
42
43
44
45
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest
, pythonOlder
, setuptoolsBuildHook
}:
buildPythonPackage rec {
pname = "pytest-socket";
version = "0.6.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "miketheman";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-RPHpqknjpuAMXYg4nFOtLp8CXh10/w0RuO/bseTBN5o=";
};
nativeBuildInputs = [
poetry-core
];
buildInputs = [
pytest
];
# pytest-socket require network for majority of tests
doCheck = false;
pythonImportsCheck = [
"pytest_socket"
];
meta = with lib; {
description = "Pytest Plugin to disable socket calls during tests";
homepage = "https://github.com/miketheman/pytest-socket";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|