lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.transip: switch to pytestCheckHook

+24 -14
+24 -14
pkgs/development/python-modules/transip/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , isPy27 5 4 , requests 6 5 , cryptography 7 6 , suds-jurko 8 - , pytest 7 + , pytestCheckHook 8 + , pythonOlder 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 - pname = "transip-api"; 12 + pname = "transip"; 13 13 version = "2.0.0"; 14 - disabled = isPy27; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.5"; 15 17 16 18 src = fetchFromGitHub { 17 19 owner = "benkonrath"; 18 - repo = pname; 20 + repo = "transip-api"; 19 21 rev = "v${version}"; 20 - sha256 = "153x8ph7cp432flaqiy2zgp060ddychcqcrssxkcmjvbm86xrz17"; 22 + hash = "sha256-J/zcDapry8pm1zozzCDzrQED7vvCR6yoE4NcduBFfZQ="; 21 23 }; 22 24 23 - checkInputs = [ pytest ]; 25 + propagatedBuildInputs = [ 26 + requests 27 + cryptography 28 + suds-jurko 29 + ]; 24 30 25 - # Constructor Tests require network access 26 - checkPhase = '' 27 - pytest --deselect=tests/service_tests/test_domain.py::TestDomainService::test_constructor \ 28 - --deselect tests/service_tests/test_vps.py::TestVPSService::testConstructor \ 29 - --deselect tests/service_tests/test_webhosting.py::TestWebhostingService::testConstructor 30 - ''; 31 + checkInputs = [ 32 + pytestCheckHook 33 + ]; 31 34 35 + disabledTests = [ 36 + # Constructor tests require network access 37 + "test_constructor" 38 + "testConstructor" 39 + ]; 32 40 33 - propagatedBuildInputs = [ requests cryptography suds-jurko ]; 41 + pythonImportsCheck = [ 42 + "transip" 43 + ]; 34 44 35 45 meta = with lib; { 36 46 description = "TransIP API Connector";