depot/third_party/nixpkgs/pkgs/development/python-modules/transmission-rpc/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

60 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, python-dotenv
, pytz
, requests
, typing-extensions
, yarl
}:
buildPythonPackage rec {
pname = "transmission-rpc";
version = "7.0.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Trim21";
repo = "transmission-rpc";
rev = "refs/tags/v${version}";
hash = "sha256-wBTx4gy6c6TMtc2m+xibEzCgYJJiMMZ16+pq3H06hgs=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
typing-extensions
];
nativeCheckInputs = [
python-dotenv
pytz
pytestCheckHook
yarl
];
pythonImportsCheck = [
"transmission_rpc"
];
disabledTests = [
# Tests require a running Transmission instance
"test_real"
];
meta = with lib; {
description = "Python module that implements the Transmission bittorent client RPC protocol";
homepage = "https://github.com/Trim21/transmission-rpc";
changelog = "https://github.com/trim21/transmission-rpc/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}