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