diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyads/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyads/default.nix | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyads/default.nix b/nixpkgs/pkgs/development/python-modules/pyads/default.nix index 37d3b31a365c..5b710b0da156 100644 --- a/nixpkgs/pkgs/development/python-modules/pyads/default.nix +++ b/nixpkgs/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"; |