33 buildPythonPackage rec {
34 pname = "elastic-apm";
38 disabled = pythonOlder "3.8";
40 src = fetchFromGitHub {
42 repo = "apm-agent-python";
43 rev = "refs/tags/v${version}";
44 hash = "sha256-S1Ebo9AWN+Mf3OFwxNTiR/AZtje3gNiYkZnVqGb7D4c=";
47 pythonRelaxDeps = [ "wrapt" ];
49 build-system = [ setuptools ];
81 disabledTests = [ "elasticapm_client" ];
85 # Exclude tornado tests
86 "tests/contrib/asyncio/tornado/tornado_tests.py"
88 ++ lib.optionals stdenv.hostPlatform.isDarwin [
89 # Flaky tests on Darwin
90 "tests/utils/threading_tests.py"
93 pythonImportsCheck = [ "elasticapm" ];
96 description = "Python agent for the Elastic APM";
97 homepage = "https://github.com/elastic/apm-agent-python";
98 changelog = "https://github.com/elastic/apm-agent-python/releases/tag/v${version}";
99 license = with licenses; [ bsd3 ];
100 maintainers = with maintainers; [ fab ];
101 mainProgram = "elasticapm-run";