at 22.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, requests 6, cryptography 7, suds-jurko 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "transip-api"; 13 version = "2.0.0"; 14 disabled = isPy27; 15 16 src = fetchFromGitHub { 17 owner = "benkonrath"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "153x8ph7cp432flaqiy2zgp060ddychcqcrssxkcmjvbm86xrz17"; 21 }; 22 23 checkInputs = [ pytest ]; 24 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 32 33 propagatedBuildInputs = [ requests cryptography suds-jurko ]; 34 35 meta = with lib; { 36 description = "TransIP API Connector"; 37 homepage = "https://github.com/benkonrath/transip-api"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ flyfloh ]; 40 }; 41}