1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 future, 6 jsonschema, 7 pytestCheckHook, 8 python-dateutil, 9 pythonOlder, 10 requests, 11 responses, 12 setuptools, 13 vcrpy, 14}: 15 16buildPythonPackage rec { 17 pname = "polyswarm-api"; 18 version = "3.11.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "polyswarm"; 25 repo = "polyswarm-api"; 26 tag = version; 27 hash = "sha256-7hmuJr+1ghVsp8EfykhVLCHwJYrO2m6cBREUFRov5Mo="; 28 }; 29 30 pythonRelaxDeps = [ "future" ]; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 future 36 jsonschema 37 python-dateutil 38 requests 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 responses 44 vcrpy 45 ]; 46 47 pythonImportsCheck = [ "polyswarm_api" ]; 48 49 meta = with lib; { 50 description = "Library to interface with the PolySwarm consumer APIs"; 51 homepage = "https://github.com/polyswarm/polyswarm-api"; 52 changelog = "https://github.com/polyswarm/polyswarm-api/releases/tag/${version}"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}