From 4653c84dc890f645c7db6a3554fe6c443c69fffc Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 19:46:14 +0700 Subject: [PATCH] python3Packages.applicationinsights: modernize --- .../python-modules/applicationinsights/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/applicationinsights/default.nix b/pkgs/development/python-modules/applicationinsights/default.nix index 7c437f2f9de9..04fe4b8f5d4c 100644 --- a/pkgs/development/python-modules/applicationinsights/default.nix +++ b/pkgs/development/python-modules/applicationinsights/default.nix @@ -6,24 +6,26 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { version = "0.11.10"; pyproject = true; pname = "applicationinsights"; src = fetchPypi { - inherit pname version; - sha256 = "0b761f3ef0680acf4731906dfc1807faa6f2a57168ae74592db0084a6099f7b3"; + inherit (finalAttrs) pname version; + hash = "sha256-C3YfPvBoCs9HMZBt/BgH+qbypXFornRZLbAISmCZ97M="; }; build-system = [ setuptools ]; dependencies = [ portalocker ]; + pythonImportsCheck = [ "applicationinsights" ]; + meta = { description = "This project extends the Application Insights API surface to support Python"; homepage = "https://github.com/Microsoft/ApplicationInsights-Python"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})