depot/third_party/nixpkgs/pkgs/development/python-modules/py-synologydsm-api/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

45 lines
798 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "py-synologydsm-api";
version = "1.0.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "mib1185";
repo = "synologydsm-api";
rev = "v${version}";
sha256 = "sha256-9bh7uLt9+uda6yFCWV6xUh//jFC4DgiS+KtRXQrU3A8=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
urllib3
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"synology_dsm"
];
meta = with lib; {
description = "Python API for Synology DSM";
homepage = "https://github.com/hacf-fr/synologydsm-api";
license = licenses.mit;
maintainers = with maintainers; [ uvnikita ];
};
}