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 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , six 5 - , typing-extensions 6 , requests 7 , yarl 8 - , pythonOlder 9 - , fetchFromGitHub 10 - , poetry-core 11 }: 12 13 buildPythonPackage rec { 14 pname = "transmission-rpc"; 15 version = "3.4.0"; 16 - disabled = pythonOlder "3.6"; 17 - 18 format = "pyproject"; 19 20 src = fetchFromGitHub { 21 owner = "Trim21"; 22 repo = "transmission-rpc"; 23 rev = "refs/tags/v${version}"; 24 - sha256 = "sha256-O+VimSIVsO4P7v+8HHdYujaKpPx4FV8bF/Nn4EHP2vo="; 25 }; 26 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 nativeBuildInputs = [ 34 poetry-core 35 ]; 36 37 propagatedBuildInputs = [ 38 - six 39 - typing-extensions 40 requests 41 yarl 42 ]; 43 44 - # no tests 45 - doCheck = false; 46 47 - pythonImportsCheck = [ "transmission_rpc" ]; 48 49 meta = with lib; { 50 description = "Python module that implements the Transmission bittorent client RPC protocol";
··· 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 14 buildPythonPackage 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";