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";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "3.4.0";
|
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}";
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-O+VimSIVsO4P7v+8HHdYujaKpPx4FV8bF/Nn4EHP2vo=";
|
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
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|