python3Packages.ripe-atlas-cousteau: init at 1.5.1 (#155270)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Ryan Lahfa 2022-08-21 04:56:43 +02:00 committed by GitHub
parent 6c6ec1e34a
commit bc04edf2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, python-dateutil
, python-socketio
, requests
, jsonschema
, pythonOlder
, pytestCheckHook
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "ripe-atlas-cousteau";
version = "1.5.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "RIPE-NCC";
repo = pname;
rev = "v${version}";
sha256 = "sha256-EHZt9Po/1wDwDacXUCVGcuVSOwcIkPCT2JCKGchu8G4=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'python-socketio[client]<5' 'python-socketio[client]<6'
'';
propagatedBuildInputs = [
python-dateutil
requests
python-socketio
];
checkInputs = [
pytestCheckHook
jsonschema
];
pythonImportsCheck = [
"ripe.atlas.cousteau"
];
meta = with lib; {
description = "Python client library for RIPE ATLAS API";
homepage = "https://github.com/RIPE-NCC/ripe-atlas-cousteau";
license = licenses.gpl3Only;
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@ -9517,6 +9517,8 @@ in {
ring-doorbell = callPackage ../development/python-modules/ring-doorbell { };
ripe-atlas-cousteau = callPackage ../development/python-modules/ripe-atlas-cousteau { };
riprova = callPackage ../development/python-modules/riprova { };
ripser = callPackage ../development/python-modules/ripser { };