python310Packages.transmission-rpc: enable tests

- update disabled

authored by Fabian Affolter and committed by GitHub 732633fd 282ac912

+22 -19
+22 -19
pkgs/development/python-modules/transmission-rpc/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 + , fetchFromGitHub 3 4 , fetchPypi 4 - , six 5 - , typing-extensions 5 + , poetry-core 6 + , pydantic 7 + , pytestCheckHook 8 + , pythonOlder 9 + , pytz 6 10 , requests 7 11 , yarl 8 - , pythonOlder 9 - , fetchFromGitHub 10 - , poetry-core 11 12 }: 12 13 13 14 buildPythonPackage rec { 14 15 pname = "transmission-rpc"; 15 16 version = "3.4.0"; 16 - disabled = pythonOlder "3.6"; 17 - 18 17 format = "pyproject"; 18 + 19 + disabled = pythonOlder "3.8"; 19 20 20 21 src = fetchFromGitHub { 21 22 owner = "Trim21"; 22 23 repo = "transmission-rpc"; 23 24 rev = "refs/tags/v${version}"; 24 - sha256 = "sha256-O+VimSIVsO4P7v+8HHdYujaKpPx4FV8bF/Nn4EHP2vo="; 25 + hash = "sha256-O+VimSIVsO4P7v+8HHdYujaKpPx4FV8bF/Nn4EHP2vo="; 25 26 }; 26 27 27 - # remove once upstream has tagged version with dumped typing-extensions 28 - postPatch = '' 29 - substituteInPlace pyproject.toml \ 30 - --replace 'typing_extensions = ">=3.7.4.2,<4.0.0.0"' 'typing_extensions = "*"' 31 - ''; 32 - 33 28 nativeBuildInputs = [ 34 29 poetry-core 35 30 ]; 36 31 37 32 propagatedBuildInputs = [ 38 - six 39 - typing-extensions 33 + pydantic 40 34 requests 35 + ]; 36 + 37 + checkInputs = [ 38 + pytz 39 + pytestCheckHook 41 40 yarl 42 41 ]; 43 42 44 - # no tests 45 - doCheck = false; 43 + pythonImportsCheck = [ 44 + "transmission_rpc" 45 + ]; 46 46 47 - pythonImportsCheck = [ "transmission_rpc" ]; 47 + disabledTests = [ 48 + # Tests require a running Transmission instance 49 + "test_real" 50 + ]; 48 51 49 52 meta = with lib; { 50 53 description = "Python module that implements the Transmission bittorent client RPC protocol";