Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 59 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 future, 6 jsonschema, 7 pytestCheckHook, 8 python-dateutil, 9 pythonOlder, 10 pythonRelaxDepsHook, 11 requests, 12 responses, 13 setuptools, 14 vcrpy, 15}: 16 17buildPythonPackage rec { 18 pname = "polyswarm-api"; 19 version = "3.6.0"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "polyswarm"; 26 repo = "polyswarm-api"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-iY0I5z+aDLQekjgHT5v/ZprCkCgNPkyImmmaCQgnoYc="; 29 }; 30 31 pythonRelaxDeps = [ "future" ]; 32 33 nativeBuildInputs = [ pythonRelaxDepsHook ]; 34 35 build-system = [ setuptools ]; 36 37 dependencies = [ 38 future 39 jsonschema 40 python-dateutil 41 requests 42 ]; 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 responses 47 vcrpy 48 ]; 49 50 pythonImportsCheck = [ "polyswarm_api" ]; 51 52 meta = with lib; { 53 description = "Library to interface with the PolySwarm consumer APIs"; 54 homepage = "https://github.com/polyswarm/polyswarm-api"; 55 changelog = "https://github.com/polyswarm/polyswarm-api/releases/tag/${version}"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}