nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.1 kB view raw
1{ 2 aiohttp, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 lib, 7 setuptools, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "agent-py"; 13 version = "0.0.24"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "ispysoftware"; 18 repo = "agent-py"; 19 tag = "agent-py.${version}"; 20 hash = "sha256-PP4gQ3AFYLJPUt9jhhiV9HkfBhIzd+JIsGpgK6FNmaE="; 21 }; 22 23 patches = [ 24 # https://github.com/ispysoftware/agent-py/pull/4 25 (fetchpatch { 26 name = "replace-async-timeout-with-asyncio.timeout.patch"; 27 url = "https://github.com/ispysoftware/agent-py/commit/2d7bcf46dce9bc733ce243858f0e91ced512c72d.patch"; 28 hash = "sha256-G/C/e/F+xtUH+2a7mNhhKONqVjYvLHt5/I75WGafl0w="; 29 }) 30 ]; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ aiohttp ]; 35 36 doCheck = false; # only test is outdated 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "agent" ]; 41 42 meta = { 43 description = "Python wrapper around the Agent REST API"; 44 homepage = "https://github.com/ispysoftware/agent-py"; 45 license = lib.licenses.asl20; 46 maintainers = with lib.maintainers; [ jamiemagee ]; 47 }; 48}