Diff: https://github.com/Trim21/transmission-rpc/compare/refs/tags/v4.2.2...v4.3.0 Changelog: https://github.com/trim21/transmission-rpc/releases/tag/v4.3.0
61 lines
1.1 KiB
Nix
61 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 = "4.3.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Trim21";
|
|
repo = "transmission-rpc";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-kcrPUBpx8puhG4de55tDGDmOnJPAOZzr+zC5gRd8b0s=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|