blob: e0cda56a9349c3fd9af9fcd907a2fe3474da49ea (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
getmac,
requests,
semver,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "vilfo-api-client";
version = "0.5.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ManneW";
repo = "vilfo-api-client-python";
tag = version;
hash = "sha256-ZlmriBd+M+54ux/UNYa355mkz808/NxSz7IzmWouA0c=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "get-mac" "getmac"
'';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
getmac
requests
semver
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [ "vilfo" ];
meta = {
description = "Simple wrapper client for the Vilfo router API";
homepage = "https://github.com/ManneW/vilfo-api-client-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|