Merge pull request #301784 from r-ryantm/auto-update/python311Packages.pyads
This commit is contained in:
commit
aa2a46548f
@ -1,45 +1,44 @@
|
||||
{ lib
|
||||
, adslib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
{
|
||||
lib,
|
||||
adslib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyads";
|
||||
version = "3.3.9";
|
||||
format = "setuptools";
|
||||
version = "3.4.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stlehmann";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-eNouFJQDgp56fgkA7wZKfosKWOKU6OvXRjFwjCMvZqI=";
|
||||
repo = "pyads";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-HJ/dlRuwFSY5j/mAp6rLMlTV59GFwrTV27n73TWlCUo=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
adslib
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [ adslib ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace pyads/pyads_ex.py \
|
||||
--replace "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")"
|
||||
--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";
|
||||
homepage = "https://github.com/MrLeeh/pyads";
|
||||
changelog = "https://github.com/stlehmann/pyads/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jamiemagee ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user