python310Packages.python-snap7: disable on older Python releases
This commit is contained in:
parent
44dd19be4b
commit
0bf74b1704
@ -1,17 +1,28 @@
|
||||
{ lib, buildPythonPackage, snap7, fetchFromGitHub, six, setuptools }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, snap7
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-snap7";
|
||||
version = "1.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gijzelaerr";
|
||||
repo = "python-snap7";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-xkkJE3wTqS6spwEmQ+HBY1Szao1VFoqmQ041vnAYuqQ=";
|
||||
hash = "sha256-xkkJE3wTqS6spwEmQ+HBY1Szao1VFoqmQ041vnAYuqQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ setuptools six ];
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace snap7/common.py \
|
||||
@ -19,7 +30,6 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
# Tests require root privileges to open privilaged ports
|
||||
# We cannot run them
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
@ -28,7 +38,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper for the snap7 PLC communication library ";
|
||||
description = "Python wrapper for the snap7 PLC communication library";
|
||||
homepage = "https://github.com/gijzelaerr/python-snap7";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
|
Loading…
Reference in New Issue
Block a user