mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 06:06:32 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
lib,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "agent-py";
|
|
version = "0.0.24";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ispysoftware";
|
|
repo = "agent-py";
|
|
tag = "agent-py.${version}";
|
|
hash = "sha256-PP4gQ3AFYLJPUt9jhhiV9HkfBhIzd+JIsGpgK6FNmaE=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/ispysoftware/agent-py/pull/4
|
|
(fetchpatch {
|
|
name = "replace-async-timeout-with-asyncio.timeout.patch";
|
|
url = "https://github.com/ispysoftware/agent-py/commit/2d7bcf46dce9bc733ce243858f0e91ced512c72d.patch";
|
|
hash = "sha256-G/C/e/F+xtUH+2a7mNhhKONqVjYvLHt5/I75WGafl0w=";
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ aiohttp ];
|
|
|
|
doCheck = false; # only test is outdated
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "agent" ];
|
|
|
|
meta = {
|
|
description = "Python wrapper around the Agent REST API";
|
|
homepage = "https://github.com/ispysoftware/agent-py";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jamiemagee ];
|
|
};
|
|
}
|