My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/ripe-atlas-cousteau/default.nix

50 lines
996 B

{ 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 ];
};
}