mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
Merge pull request #125932 from fabaff/bump-pyads
python3Packages.pyads: 3.2.2 -> 3.3.7
This commit is contained in:
commit
fd23f5f26d
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user