1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 poetry-core, 7 pythonRelaxDepsHook, 8 pytestCheckHook, 9 requests-mock, 10}: 11 12buildPythonPackage rec { 13 pname = "synology-srm"; 14 version = "0.2.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "aerialls"; 19 repo = "synology-srm"; 20 tag = "v${version}"; 21 hash = "sha256-qQxctw1UUs3jYve//irBni8rNKeld5u/bVtOwD2ofEQ="; 22 }; 23 24 build-system = [ 25 poetry-core 26 ]; 27 28 nativeBuildInputs = [ 29 pythonRelaxDepsHook 30 ]; 31 32 pythonRelaxDeps = [ 33 "requests" 34 ]; 35 36 dependencies = [ 37 requests 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 requests-mock 43 ]; 44 45 pythonImportsCheck = [ 46 "synology_srm" 47 ]; 48 49 meta = { 50 description = "Python 3 library for Synology SRM (Router Manager)"; 51 homepage = "https://github.com/aerialls/synology-srm"; 52 changelog = "https://github.com/aerialls/synology-srm/releases/tag/v${version}"; 53 license = lib.licenses.mit; 54 maintainers = [ lib.maintainers.jamiemagee ]; 55 }; 56}