From e7dfc3b4c8b0d051a3c01f9e53cf035259058830 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 6 Jun 2021 12:24:09 +0200 Subject: [PATCH] python3Packages.pyads: 3.2.2 -> 3.3.7 --- .../python-modules/pyads/default.nix | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyads/default.nix b/pkgs/development/python-modules/pyads/default.nix index 37d3b31a365c..5b710b0da156 100644 --- a/pkgs/development/python-modules/pyads/default.nix +++ b/pkgs/development/python-modules/pyads/default.nix @@ -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";