blob: dcfa2036014673f2d73b4ea8931a9a9968038c28 (
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
|
{ 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 ];
};
}
|