From 0675fe18c7fa266f32b71ccc36e17bf08d9f07a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jan 2025 22:43:21 +0100 Subject: [PATCH] python312Packages.pyflick: 0.0.2 -> 1.1.2 Changelog: https://github.com/ZephireNZ/PyFlick/releases/tag/v1.1.2 --- .../python-modules/pyflick/default.nix | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/pyflick/default.nix b/pkgs/development/python-modules/pyflick/default.nix index f9f7f084e0be..4b11027d55f0 100644 --- a/pkgs/development/python-modules/pyflick/default.nix +++ b/pkgs/development/python-modules/pyflick/default.nix @@ -1,27 +1,36 @@ { lib, - buildPythonPackage, - pythonOlder, - fetchPypi, aiohttp, + buildPythonPackage, + fetchFromGitHub, + json-api-doc, python-dateutil, + setuptools-scm, + setuptools, }: buildPythonPackage rec { - pname = "pyflick"; - version = "0.0.2"; - format = "setuptools"; + pname = "py-flick"; + version = "1.1.2"; + pyproject = true; - disabled = pythonOlder "3.6"; - - src = fetchPypi { - pname = "PyFlick"; - inherit version; - sha256 = "705c82d8caedfff19117c8859cc1b4f56e15ab8dbc0d64d63b79d8634007897f"; + src = fetchFromGitHub { + owner = "ZephireNZ"; + repo = "PyFlick"; + tag = "v${version}"; + hash = "sha256-Csm5gXMIGEhHgzN/7sO/1iM/wZklI2Jc0C69tgYWxnQ="; }; - propagatedBuildInputs = [ + pythonRelaxDeps = [ "aiohttp" ]; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ aiohttp + json-api-doc python-dateutil ]; @@ -33,10 +42,11 @@ buildPythonPackage rec { "pyflick.authentication" ]; - meta = with lib; { + meta = { description = "Python API For Flick Electric in New Zealand"; homepage = "https://github.com/ZephireNZ/PyFlick"; - license = licenses.mit; - maintainers = with maintainers; [ dotlambda ]; + changelog = "https://github.com/ZephireNZ/PyFlick/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; }; }