From c856c35fe9cc736ebab69027f2c2191d7dc2720d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 30 Jun 2022 16:31:52 +0000 Subject: [PATCH 1/2] python310Packages.hcloud: 1.16.0 -> 1.17.0 --- pkgs/development/python-modules/hcloud/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hcloud/default.nix b/pkgs/development/python-modules/hcloud/default.nix index 3183560ba00c..6c79629919da 100644 --- a/pkgs/development/python-modules/hcloud/default.nix +++ b/pkgs/development/python-modules/hcloud/default.nix @@ -13,12 +13,12 @@ buildPythonPackage rec { pname = "hcloud"; - version = "1.16.0"; + version = "1.17.0"; disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "c8b94557d93bcfe437f20a8176693ea4f54358b74986cc19d94ebc23f48e40cc"; + sha256 = "sha256-+BQuBDi+J3xvod3uE67NXaFStIxt7H/Ulw3vG13CGeI="; }; propagatedBuildInputs = [ future requests python-dateutil ]; From a046e6c8f31a4766d8374c5269ebb492f623072a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 1 Jul 2022 08:50:39 +0200 Subject: [PATCH 2/2] python310Packages.hcloud: enable all tests - add pythonImportsCheck - remove lint inputs - disable on older Python releases - add format - update description --- .../python-modules/hcloud/default.nix | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/hcloud/default.nix b/pkgs/development/python-modules/hcloud/default.nix index 6c79629919da..ad8e79b63fd1 100644 --- a/pkgs/development/python-modules/hcloud/default.nix +++ b/pkgs/development/python-modules/hcloud/default.nix @@ -2,39 +2,44 @@ , buildPythonPackage , fetchPypi , future -, requests -, python-dateutil -, flake8 -, isort , mock -, pytest -, isPy27 +, pytestCheckHook +, python-dateutil +, pythonOlder +, requests }: buildPythonPackage rec { pname = "hcloud"; version = "1.17.0"; - disabled = isPy27; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-+BQuBDi+J3xvod3uE67NXaFStIxt7H/Ulw3vG13CGeI="; + hash = "sha256-+BQuBDi+J3xvod3uE67NXaFStIxt7H/Ulw3vG13CGeI="; }; - propagatedBuildInputs = [ future requests python-dateutil ]; + propagatedBuildInputs = [ + future + requests + python-dateutil + ]; - checkInputs = [ flake8 isort mock pytest ]; + checkInputs = [ + mock + pytestCheckHook + ]; - # Skip integration tests since they require a separate external fake API endpoint. - checkPhase = '' - pytest --ignore=tests/integration - ''; + pythonImportsCheck = [ + "hcloud" + ]; meta = with lib; { - description = "Official Hetzner Cloud python library"; + description = "Library for the Hetzner Cloud API"; homepage = "https://github.com/hetznercloud/hcloud-python"; license = licenses.mit; - platforms = platforms.all; maintainers = with maintainers; [ liff ]; }; }