blob: 7bb23f3f641030c484a36c1780dd9de5d7cbc292 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, jinja2
, poetry-core
, pytestCheckHook
, pythonOlder
, pyyaml
, toml
}:
buildPythonPackage rec {
pname = "netutils";
version = "1.3.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "networktocode";
repo = pname;
rev = "v${version}";
hash = "sha256-3c44ZJIEBhKggtqs77gt2fY3tI00ZGmFGLIGR8LF6aE=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
jinja2
pytestCheckHook
pyyaml
toml
];
pythonImportsCheck = [
"netutils"
];
disabledTests = [
# Tests require network access
"test_is_fqdn_resolvable"
"test_fqdn_to_ip"
"test_tcp_ping"
# Skip SPhinx test
"test_sphinx_build"
];
meta = with lib; {
description = "Library that is a collection of objects for common network automation tasks";
homepage = "https://github.com/networktocode/netutils";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
broken = stdenv.isDarwin;
};
}
|