Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 39 lines 1.0 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, cryptography 6, suds-jurko 7, pytest 8}: 9 10buildPythonPackage rec { 11 pname = "transip-api"; 12 version = "2.0.0"; 13 14 src = fetchFromGitHub { 15 owner = "benkonrath"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "153x8ph7cp432flaqiy2zgp060ddychcqcrssxkcmjvbm86xrz17"; 19 }; 20 21 checkInputs = [ pytest ]; 22 23 # Constructor Tests require network access 24 checkPhase = '' 25 pytest --deselect=tests/service_tests/test_domain.py::TestDomainService::test_constructor \ 26 --deselect tests/service_tests/test_vps.py::TestVPSService::testConstructor \ 27 --deselect tests/service_tests/test_webhosting.py::TestWebhostingService::testConstructor 28 ''; 29 30 31 propagatedBuildInputs = [ requests cryptography suds-jurko ]; 32 33 meta = with stdenv.lib; { 34 description = "TransIP API Connector"; 35 homepage = https://github.com/benkonrath/transip-api; 36 license = licenses.mit; 37 maintainers = with maintainers; [ flyfloh ]; 38 }; 39}