From a854d724c4618b27872171e62db17353769f1ee7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 14:03:27 +0200 Subject: [PATCH] python312Packages.crownstone-cloud: 1.4.9 -> 1.4.11 --- .../crownstone-cloud/default.nix | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/crownstone-cloud/default.nix b/pkgs/development/python-modules/crownstone-cloud/default.nix index d8ee18a090d4..9ceabd797ec7 100644 --- a/pkgs/development/python-modules/crownstone-cloud/default.nix +++ b/pkgs/development/python-modules/crownstone-cloud/default.nix @@ -1,8 +1,7 @@ { lib , aiohttp , buildPythonPackage -, fetchFromGitHub -, fetchpatch +, fetchPypi , certifi , pythonOlder , pytestCheckHook @@ -10,27 +9,17 @@ buildPythonPackage rec { pname = "crownstone-cloud"; - version = "1.4.9"; + version = "1.4.11"; format = "setuptools"; disabled = pythonOlder "3.8"; - src = fetchFromGitHub { - owner = "crownstone"; - repo = "crownstone-lib-python-cloud"; - rev = "refs/tags/${version}"; - hash = "sha256-CS1zeQiWPnsGCWixCsN9sz08mPORW5sVqIpSFPh0Qt0="; + src = fetchPypi { + pname = "crownstone_cloud"; + inherit version; + hash = "sha256-s84pK52uMupxQfdMldV14V3nj+yVku1Vw13CRX4o08U="; }; - patches = [ - # Remove asynctest, https://github.com/crownstone/crownstone-lib-python-cloud/pull/4 - (fetchpatch { - name = "remove-asynctest.patch"; - url = "https://github.com/crownstone/crownstone-lib-python-cloud/commit/7f22c9b284bf8d7f6f43e205816787dd3bb37e78.patch"; - hash = "sha256-LS1O9LVB14WyBXfuHf/bs1juJ59zWhJ8pL4aGtVrTG8="; - }) - ]; - propagatedBuildInputs = [ aiohttp certifi @@ -50,7 +39,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python module for communicating with Crownstone Cloud and devices"; - homepage = "https://github.com/crownstone/crownstone-lib-python-cloud"; + homepage = "https://github.com/Crownstone-Community/crownstone-lib-python-cloud"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };