git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #125932 from fabaff/bump-pyads

python3Packages.pyads: 3.2.2 -> 3.3.7

commitfd23f5f26d04622bdbbe0fbc808097b5eb37c1d3 authorSandro <sandro.jaeckel@gmail.com> dateMon 14 Jun 2021, 20:13 (5 years ago) parent306c5ece7dfc3b
1 file changed+19−7
pkgs/development/python-modules/pyads/default.nix+19−7
pkgs/development/python-modules/pyads/default.nix+19−7
@@ -1,25 +1,37 @@
1−{ adslib, buildPythonPackage, fetchFromGitHub, lib, pytestCheckHook, pytest
2−, pytestcov, pythonOlder }:
1+{ lib
2+, adslib
3+, buildPythonPackage
4+, fetchFromGitHub
5+, pytestCheckHook
6+, pythonOlder
7+}:
38
49buildPythonPackage rec {
510 pname = "pyads";
6− version = "3.2.2";
7−
11+ version = "3.3.7";
812 disabled = pythonOlder "3.6";
913
1014 src = fetchFromGitHub {
1115 owner = "stlehmann";
1216 repo = pname;
1317 rev = version;
14− sha256 = "1jd727pw0z73y4xhrykqkfcz1acrpy3rks58lr1y4yilfv11p6jb";
18+ sha256 = "sha256-h3c6z+dmrOc1Q7E8YVJZJD2FsxoxqQX5J92SEweIpto=";
1519 };
1620
17− buildInputs = [ adslib ];
21+ buildInputs = [
22+ adslib
23+ ];
24+
1825 patchPhase = ''
1926 substituteInPlace pyads/pyads_ex.py \
2027 --replace "ctypes.CDLL(adslib)" "ctypes.CDLL(\"${adslib}/lib/adslib.so\")"
2128 '';
22− checkInputs = [ pytestCheckHook pytest pytestcov ];
29+
30+ checkInputs = [
31+ pytestCheckHook
32+ ];
33+
34+ pythonImportsCheck = [ "pyads" ];
2335
2436 meta = with lib; {
2537 description = "Python wrapper for TwinCAT ADS library";