From 563669b575c7e77e38fbb58d70fa2843c7b3129e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 31 Mar 2026 18:15:32 +0200 Subject: [PATCH] python3Packages.oasatelematics: 0.3 -> 0.4 Changelog: https://github.com/panosmz/oasatelematics/releases/tag/v0.4 --- .../python-modules/oasatelematics/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/oasatelematics/default.nix b/pkgs/development/python-modules/oasatelematics/default.nix index 4869b8b23603..04a090d5cee5 100644 --- a/pkgs/development/python-modules/oasatelematics/default.nix +++ b/pkgs/development/python-modules/oasatelematics/default.nix @@ -2,32 +2,36 @@ lib, buildPythonPackage, fetchFromGitHub, + pytestCheckHook, requests, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "oasatelematics"; - version = "0.3"; - format = "setuptools"; + version = "0.4"; + pyproject = true; src = fetchFromGitHub { owner = "panosmz"; repo = "oasatelematics"; - rev = "v${version}"; - hash = "sha256-3O7XbNVj1S3ZwheklEhm0ivw16Tj7drML/xYC9383Kg="; + tag = "v${finalAttrs.version}"; + hash = "sha256-pqjzvLeVGW5rC3lK/9WnYdCLyF1fM7GGwzEG5h2lKPA="; }; - propagatedBuildInputs = [ requests ]; + build-system = [ setuptools ]; - # Module has no tests - doCheck = false; + dependencies = [ requests ]; + + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "oasatelematics" ]; meta = { description = "Python wrapper for the OASA Telematics API"; homepage = "https://github.com/panosmz/oasatelematics"; + changelog = "https://github.com/panosmz/oasatelematics/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ fab ]; }; -} +})