pythonPackages.pyads: init at 3.2.2

This commit is contained in:
Jamie Magee 2020-10-03 16:11:13 +02:00
parent 1c44f88e11
commit f2cb43449c
No known key found for this signature in database
GPG key ID: 4429B642B1718654
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ adslib, buildPythonPackage, fetchFromGitHub, lib, pytestCheckHook, pytest
, pytestcov, pythonOlder }:
buildPythonPackage rec {
pname = "pyads";
version = "3.2.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "stlehmann";
repo = pname;
rev = version;
sha256 = "1jd727pw0z73y4xhrykqkfcz1acrpy3rks58lr1y4yilfv11p6jb";
};
buildInputs = [ adslib ];
patchPhase = ''
substituteInPlace pyads/pyads_ex.py \
--replace "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")"
'';
checkInputs = [ pytestCheckHook pytest pytestcov ];
meta = with lib; {
description = "Python wrapper for TwinCAT ADS library";
homepage = "https://github.com/MrLeeh/pyads";
license = licenses.mit;
maintainers = with maintainers; [ jamiemagee ];
};
}

View file

@ -4722,6 +4722,8 @@ in {
pyacoustid = callPackage ../development/python-modules/pyacoustid { }; pyacoustid = callPackage ../development/python-modules/pyacoustid { };
pyads = callPackage ../development/python-modules/pyads { };
pyaes = callPackage ../development/python-modules/pyaes { }; pyaes = callPackage ../development/python-modules/pyaes { };
pyairvisual = callPackage ../development/python-modules/pyairvisual { }; pyairvisual = callPackage ../development/python-modules/pyairvisual { };