summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aioaseko
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-08-25 20:43:04 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2023-08-25 20:44:00 +0200
commitd712f8e4c2665fb6627b70d478290414622fdea8 (patch)
tree8986ddb86962d882e2752e71985d1a5dcf9408e0 /pkgs/development/python-modules/aioaseko
parent94d494b2f667a9c910582e1ba9648babd63550bf (diff)
python311Packages.aioaseko: 0.0.2 -> 0.1.0
Diff: https://github.com/milanmeu/aioaseko/compare/refs/tags/v0.0.2...v0.1.0 Changelog: https://github.com/milanmeu/aioaseko/releases/tag/v0.1.0
Diffstat (limited to 'pkgs/development/python-modules/aioaseko')
-rw-r--r--pkgs/development/python-modules/aioaseko/default.nix19
1 files changed, 16 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/aioaseko/default.nix b/pkgs/development/python-modules/aioaseko/default.nix
index d6d69c6ee466..e1781a9bf324 100644
--- a/pkgs/development/python-modules/aioaseko/default.nix
+++ b/pkgs/development/python-modules/aioaseko/default.nix
@@ -2,13 +2,15 @@
, aiohttp
, buildPythonPackage
, fetchFromGitHub
+, fetchpatch
, pythonOlder
, setuptools
+, pyjwt
}:
buildPythonPackage rec {
pname = "aioaseko";
- version = "0.0.2";
+ version = "0.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
@@ -16,16 +18,26 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "milanmeu";
repo = pname;
- rev = "v${version}";
- hash = "sha256-nJRVNBYfBcLYnBsTpQZYMHYWh0+hQObVKJ7sOXFwDjc=";
+ rev = "refs/tags/v${version}";
+ hash = "sha256-RgIwA5/W7qtgI9ZTF4oDPuzSc+r04ZV3JOaNNFjS0pU=";
};
+ patches = [
+ # Remove time, https://github.com/milanmeu/aioaseko/pull/6
+ (fetchpatch {
+ name = "remove-time.patch";
+ url = "https://github.com/milanmeu/aioaseko/commit/07d7ca43a2edd060e95a64737f072d98ba938484.patch";
+ hash = "sha256-67QaqSy5mGY/22jWHOkymr0pFoiizVQAXlrqXRb3tG0=";
+ })
+ ];
+
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
+ pyjwt
];
# Module has no tests
@@ -38,6 +50,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Module to interact with the Aseko Pool Live API";
homepage = "https://github.com/milanmeu/aioaseko";
+ changelog = "https://github.com/milanmeu/aioaseko/releases/tag/v${version}";
license = with licenses; [ lgpl3Plus ];
maintainers = with maintainers; [ fab ];
};