depot/third_party/nixpkgs/pkgs/development/python-modules/py-synologydsm-api/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

45 lines
980 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "py-synologydsm-api";
version = "2.4.4";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mib1185";
repo = "py-synologydsm-api";
rev = "refs/tags/v${version}";
hash = "sha256-46KoOKBiulTYH2x8ftFPVDF0oeBG1Pe9PkonxIV7528=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "synology_dsm" ];
meta = with lib; {
description = "Python API for Synology DSM";
mainProgram = "synologydsm-api";
homepage = "https://github.com/mib1185/py-synologydsm-api";
changelog = "https://github.com/mib1185/py-synologydsm-api/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ uvnikita ];
};
}