lol
at 23.05-pre 50 lines 996 B view raw
1{ lib 2, python-dateutil 3, python-socketio 4, requests 5, jsonschema 6, pythonOlder 7, pytestCheckHook 8, buildPythonPackage 9, fetchFromGitHub 10}: 11 12buildPythonPackage rec { 13 pname = "ripe-atlas-cousteau"; 14 version = "1.5.1"; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "RIPE-NCC"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "sha256-EHZt9Po/1wDwDacXUCVGcuVSOwcIkPCT2JCKGchu8G4="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace 'python-socketio[client]<5' 'python-socketio[client]<6' 27 ''; 28 29 propagatedBuildInputs = [ 30 python-dateutil 31 requests 32 python-socketio 33 ]; 34 35 checkInputs = [ 36 pytestCheckHook 37 jsonschema 38 ]; 39 40 pythonImportsCheck = [ 41 "ripe.atlas.cousteau" 42 ]; 43 44 meta = with lib; { 45 description = "Python client library for RIPE ATLAS API"; 46 homepage = "https://github.com/RIPE-NCC/ripe-atlas-cousteau"; 47 license = licenses.gpl3Only; 48 maintainers = with maintainers; [ raitobezarius ]; 49 }; 50}