depot/third_party/nixpkgs/pkgs/development/python-modules/ripe-atlas-cousteau/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

50 lines
996 B
Nix

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