From 2e980b4e43191ed3c4eebb732b5ebc378924dd8d Mon Sep 17 00:00:00 2001 From: Savyasachee Jha Date: Mon, 14 Aug 2023 22:59:44 +0530 Subject: [PATCH] python310Packages.qbittorrent-api: init at 2023.7.52 --- .../qbittorrent-api/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/qbittorrent-api/default.nix diff --git a/pkgs/development/python-modules/qbittorrent-api/default.nix b/pkgs/development/python-modules/qbittorrent-api/default.nix new file mode 100644 index 0000000000000..2785ad3a32d9d --- /dev/null +++ b/pkgs/development/python-modules/qbittorrent-api/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +, six +, urllib3 +, packaging +, setuptools +, wheel +}: + +buildPythonPackage rec { + pname = "qbittorrent-api"; + version = "2023.7.52"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-RHOupNo0jteUpxcxAojOfnBGGBt293j0OCHeKEritpQ="; + }; + + propagatedBuildInputs = [ + requests + six + urllib3 + packaging + ]; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + # Tests require internet access + doCheck = false; + + pythonImportsCheck = [ + "qbittorrentapi" + ]; + + meta = with lib; { + description = "Python client implementation for qBittorrent's Web API"; + homepage = "https://github.com/rmartin16/qbittorrent-api"; + changelog = "https://github.com/rmartin16/qbittorrent-api/blob/v${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ savyajha ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fef64074b676e..86c4c9d852601 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10688,6 +10688,8 @@ self: super: with self; { pyzufall = callPackage ../development/python-modules/pyzufall { }; + qbittorrent-api = callPackage ../development/python-modules/qbittorrent-api { }; + qcelemental = callPackage ../development/python-modules/qcelemental { }; qcengine = callPackage ../development/python-modules/qcengine { };