depot/third_party/nixpkgs/pkgs/development/python-modules/transmission-rpc/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

58 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, poetry-core
, pydantic
, pytestCheckHook
, pythonOlder
, pytz
, requests
, yarl
}:
buildPythonPackage rec {
pname = "transmission-rpc";
version = "3.4.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Trim21";
repo = "transmission-rpc";
rev = "refs/tags/v${version}";
hash = "sha256-O+VimSIVsO4P7v+8HHdYujaKpPx4FV8bF/Nn4EHP2vo=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pydantic
requests
];
checkInputs = [
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";
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}