python3Packages.pyads: 3.2.2 -> 3.3.7

This commit is contained in:
Fabian Affolter 2021-06-06 12:24:09 +02:00
parent c177b49d39
commit e7dfc3b4c8

View File

@ -1,25 +1,37 @@
{ adslib, buildPythonPackage, fetchFromGitHub, lib, pytestCheckHook, pytest
, pytestcov, pythonOlder }:
{ lib
, adslib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyads";
version = "3.2.2";
version = "3.3.7";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "stlehmann";
repo = pname;
rev = version;
sha256 = "1jd727pw0z73y4xhrykqkfcz1acrpy3rks58lr1y4yilfv11p6jb";
sha256 = "sha256-h3c6z+dmrOc1Q7E8YVJZJD2FsxoxqQX5J92SEweIpto=";
};
buildInputs = [ adslib ];
buildInputs = [
adslib
];
patchPhase = ''
substituteInPlace pyads/pyads_ex.py \
--replace "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")"
'';
checkInputs = [ pytestCheckHook pytest pytestcov ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pyads" ];
meta = with lib; {
description = "Python wrapper for TwinCAT ADS library";