1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-asyncio, 7 pytest-cov-stub, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "discovery30303"; 14 version = "0.3.3"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "bdraco"; 21 repo = "discovery30303"; 22 tag = "v${version}"; 23 hash = "sha256-QIGLRe+nUV3tUOs+pu6Qk/2Amh9IVcQq89o2JeKiTvM="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 nativeCheckInputs = [ 29 pytest-asyncio 30 pytest-cov-stub 31 pytestCheckHook 32 ]; 33 34 pytestFlags = [ "--asyncio-mode=auto" ]; 35 36 pythonImportsCheck = [ "discovery30303" ]; 37 38 meta = with lib; { 39 description = "Module to discover devices that respond on port 30303"; 40 homepage = "https://github.com/bdraco/discovery30303"; 41 changelog = "https://github.com/bdraco/discovery30303/releases/tag/${src.tag}"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}