nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 998 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 jsonschema, 6 pytestCheckHook, 7 python-dateutil, 8 requests, 9 responses, 10 setuptools, 11 vcrpy, 12}: 13 14buildPythonPackage (finalAttrs: { 15 pname = "polyswarm-api"; 16 version = "3.16.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "polyswarm"; 21 repo = "polyswarm-api"; 22 tag = finalAttrs.version; 23 hash = "sha256-mdsgHwbGThy2Lzvgzb0mItwJkNspLiqGZzBGGuQdatM="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 jsonschema 30 python-dateutil 31 requests 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 responses 37 vcrpy 38 ]; 39 40 pythonImportsCheck = [ "polyswarm_api" ]; 41 42 meta = { 43 description = "Library to interface with the PolySwarm consumer APIs"; 44 homepage = "https://github.com/polyswarm/polyswarm-api"; 45 changelog = "https://github.com/polyswarm/polyswarm-api/releases/tag/${finalAttrs.src.tag}"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ fab ]; 48 }; 49})