python311Packages.pyads: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-05 13:13:02 +02:00
parent ec4fc3d3ae
commit cbda8e7828

View File

@ -1,10 +1,11 @@
{ lib {
, adslib lib,
, buildPythonPackage adslib,
, fetchFromGitHub buildPythonPackage,
, pytestCheckHook fetchFromGitHub,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -21,26 +22,18 @@ buildPythonPackage rec {
hash = "sha256-HJ/dlRuwFSY5j/mAp6rLMlTV59GFwrTV27n73TWlCUo="; hash = "sha256-HJ/dlRuwFSY5j/mAp6rLMlTV59GFwrTV27n73TWlCUo=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
buildInputs = [ buildInputs = [ adslib ];
adslib
];
patchPhase = '' patchPhase = ''
substituteInPlace pyads/pyads_ex.py \ substituteInPlace pyads/pyads_ex.py \
--replace-fail "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")" --replace-fail "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")"
''; '';
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [ "pyads" ];
"pyads"
];
meta = with lib; { meta = with lib; {
description = "Python wrapper for TwinCAT ADS library"; description = "Python wrapper for TwinCAT ADS library";