From c3cef7c97b5f78ccd6ce2b3ba92c72d013efcadc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Jan 2024 13:42:28 +0100 Subject: [PATCH] python311Packages.openerz-api: refactor --- .../python-modules/openerz-api/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/openerz-api/default.nix b/pkgs/development/python-modules/openerz-api/default.nix index 4d6401004e52..698816a62620 100644 --- a/pkgs/development/python-modules/openerz-api/default.nix +++ b/pkgs/development/python-modules/openerz-api/default.nix @@ -4,23 +4,28 @@ , pytestCheckHook , pythonOlder , requests +, setuptools , testfixtures }: buildPythonPackage rec { pname = "openerz-api"; version = "0.3.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "misialq"; - repo = pname; + repo = "openerz-api"; rev = "refs/tags/v${version}"; hash = "sha256-CwK61StspZJt0TALv76zfibUzlriwp9HRoYOtX9bU+c="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ requests ]; @@ -34,11 +39,6 @@ buildPythonPackage rec { "openerz_api" ]; - disabledTests = [ - # Assertion issue - "test_sensor_make_api_request" - ]; - meta = with lib; { description = "Python module to interact with the OpenERZ API"; homepage = "https://github.com/misialq/openerz-api";