2021-02-17 17:02:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-10-21 18:38:19 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-17 17:02:09 +00:00
|
|
|
, fetchPypi
|
2022-10-21 18:38:19 +00:00
|
|
|
, poetry-core
|
|
|
|
, pydantic
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
2021-02-17 17:02:09 +00:00
|
|
|
, requests
|
|
|
|
, yarl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "transmission-rpc";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "4.1.3";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Trim21";
|
|
|
|
repo = "transmission-rpc";
|
2022-07-18 16:21:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-GF2dXvtYgXTjdcellyCPFFTjp4Y6PKb2ihQETfomgU4=";
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
pydantic
|
2021-02-17 17:02:09 +00:00
|
|
|
requests
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
pytz
|
|
|
|
pytestCheckHook
|
2021-02-17 17:02:09 +00:00
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"transmission_rpc"
|
|
|
|
];
|
2021-08-23 08:02:39 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests require a running Transmission instance
|
|
|
|
"test_real"
|
|
|
|
];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module that implements the Transmission bittorent client RPC protocol";
|
2021-08-23 08:02:39 +00:00
|
|
|
homepage = "https://github.com/Trim21/transmission-rpc";
|
2021-02-17 17:02:09 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ eyjhb ];
|
|
|
|
};
|
|
|
|
}
|