python3Packages.synology-srm: init at 0.2.3 (#432197)

This commit is contained in:
Martin Weinelt 2025-08-09 12:20:56 +02:00 committed by GitHub
commit a95d187495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 60 additions and 1 deletions

View File

@ -0,0 +1,56 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
poetry-core,
pythonRelaxDepsHook,
pytestCheckHook,
requests-mock,
}:
buildPythonPackage rec {
pname = "synology-srm";
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "aerialls";
repo = "synology-srm";
tag = "v${version}";
hash = "sha256-qQxctw1UUs3jYve//irBni8rNKeld5u/bVtOwD2ofEQ=";
};
build-system = [
poetry-core
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"requests"
];
dependencies = [
requests
];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [
"synology_srm"
];
meta = {
description = "Python 3 library for Synology SRM (Router Manager)";
homepage = "https://github.com/aerialls/synology-srm";
changelog = "https://github.com/aerialls/synology-srm/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}

View File

@ -5774,7 +5774,8 @@
];
"synology_srm" =
ps: with ps; [
]; # missing inputs: synology-srm
synology-srm
];
"syslog" =
ps: with ps; [
];

View File

@ -17595,6 +17595,8 @@ self: super: with self; {
synergy = callPackage ../development/python-modules/synergy { };
synology-srm = callPackage ../development/python-modules/synology-srm { };
syrupy = callPackage ../development/python-modules/syrupy { };
syslog-rfc5424-formatter = callPackage ../development/python-modules/syslog-rfc5424-formatter { };