at 24.11-pre 57 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8 python-dotenv, 9 pytz, 10 requests, 11 typing-extensions, 12 yarl, 13}: 14 15buildPythonPackage rec { 16 pname = "transmission-rpc"; 17 version = "7.0.3"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "Trim21"; 24 repo = "transmission-rpc"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-HthWeFInolNEs7RNA773DJjhGvl1rfDhvhO8WwRwuuY="; 27 }; 28 29 nativeBuildInputs = [ poetry-core ]; 30 31 propagatedBuildInputs = [ 32 requests 33 typing-extensions 34 ]; 35 36 nativeCheckInputs = [ 37 python-dotenv 38 pytz 39 pytestCheckHook 40 yarl 41 ]; 42 43 pythonImportsCheck = [ "transmission_rpc" ]; 44 45 disabledTests = [ 46 # Tests require a running Transmission instance 47 "test_real" 48 ]; 49 50 meta = with lib; { 51 description = "Python module that implements the Transmission bittorent client RPC protocol"; 52 homepage = "https://github.com/Trim21/transmission-rpc"; 53 changelog = "https://github.com/trim21/transmission-rpc/releases/tag/v${version}"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ eyjhb ]; 56 }; 57}