blob: 4a0a83b02ce61daa3cfae2ab031989da192a53ce (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "discovery30303";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "discovery30303";
tag = "v${version}";
hash = "sha256-QIGLRe+nUV3tUOs+pu6Qk/2Amh9IVcQq89o2JeKiTvM=";
};
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "discovery30303" ];
meta = {
description = "Module to discover devices that respond on port 30303";
homepage = "https://github.com/bdraco/discovery30303";
changelog = "https://github.com/bdraco/discovery30303/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|