34 buildPythonPackage rec {
35 pname = "elastic-apm";
39 disabled = pythonOlder "3.8";
41 src = fetchFromGitHub {
43 repo = "apm-agent-python";
44 rev = "refs/tags/v${version}";
45 hash = "sha256-VuVx+QUiV4M/ebyv2uF/YZwfvcaPDJAEi55fXfoIttU=";
48 pythonRelaxDeps = [ "wrapt" ];
50 build-system = [ setuptools ];
52 nativeBuildInputs = [ pythonRelaxDepsHook ];
83 disabledTests = [ "elasticapm_client" ];
87 # Exclude tornado tests
88 "tests/contrib/asyncio/tornado/tornado_tests.py"
90 ++ lib.optionals stdenv.isDarwin [
91 # Flaky tests on Darwin
92 "tests/utils/threading_tests.py"
95 pythonImportsCheck = [ "elasticapm" ];
98 description = "Python agent for the Elastic APM";
99 homepage = "https://github.com/elastic/apm-agent-python";
100 changelog = "https://github.com/elastic/apm-agent-python/releases/tag/v${version}";
101 license = with licenses; [ bsd3 ];
102 maintainers = with maintainers; [ fab ];
103 mainProgram = "elasticapm-run";