From cbda8e7828335f48dcee0eeb5862b61999aaa20a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Apr 2024 13:13:02 +0200 Subject: [PATCH] python311Packages.pyads: format with nixfmt --- .../python-modules/pyads/default.nix | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/pyads/default.nix b/pkgs/development/python-modules/pyads/default.nix index dbb5a1683986..68dd02bb721d 100644 --- a/pkgs/development/python-modules/pyads/default.nix +++ b/pkgs/development/python-modules/pyads/default.nix @@ -1,10 +1,11 @@ -{ lib -, adslib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + adslib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,26 +22,18 @@ buildPythonPackage rec { hash = "sha256-HJ/dlRuwFSY5j/mAp6rLMlTV59GFwrTV27n73TWlCUo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - buildInputs = [ - adslib - ]; + buildInputs = [ adslib ]; patchPhase = '' substituteInPlace pyads/pyads_ex.py \ --replace-fail "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyads" - ]; + pythonImportsCheck = [ "pyads" ]; meta = with lib; { description = "Python wrapper for TwinCAT ADS library";