lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python310Packages.python-snap7: disable on older Python releases

authored by

Fabian Affolter and committed by
GitHub
0bf74b17 44dd19be

+15 -5
+15 -5
pkgs/development/python-modules/python-snap7/default.nix
··· 1 - { lib, buildPythonPackage, snap7, fetchFromGitHub, six, setuptools }: 1 + { lib 2 + , buildPythonPackage 3 + , snap7 4 + , fetchFromGitHub 5 + , setuptools 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "python-snap7"; 5 11 version = "1.2"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.6"; 6 15 7 16 src = fetchFromGitHub { 8 17 owner = "gijzelaerr"; 9 18 repo = "python-snap7"; 10 19 rev = "refs/tags/${version}"; 11 - sha256 = "sha256-xkkJE3wTqS6spwEmQ+HBY1Szao1VFoqmQ041vnAYuqQ="; 20 + hash = "sha256-xkkJE3wTqS6spwEmQ+HBY1Szao1VFoqmQ041vnAYuqQ="; 12 21 }; 13 22 14 - propagatedBuildInputs = [ setuptools six ]; 23 + propagatedBuildInputs = [ 24 + setuptools 25 + ]; 15 26 16 27 prePatch = '' 17 28 substituteInPlace snap7/common.py \ ··· 19 30 ''; 20 31 21 32 # Tests require root privileges to open privilaged ports 22 - # We cannot run them 23 33 doCheck = false; 24 34 25 35 pythonImportsCheck = [ ··· 28 38 ]; 29 39 30 40 meta = with lib; { 31 - description = "Python wrapper for the snap7 PLC communication library "; 41 + description = "Python wrapper for the snap7 PLC communication library"; 32 42 homepage = "https://github.com/gijzelaerr/python-snap7"; 33 43 license = licenses.mit; 34 44 maintainers = with maintainers; [ freezeboy ];