mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
Merge pull request #174667 from r-ryantm/auto-update/python3.10-python-snap7
python310Packages.python-snap7: 1.1 -> 1.2
This commit is contained in:
commit
ed6dc1de94
|
@ -1,17 +1,28 @@
|
|||
{ lib, buildPythonPackage, snap7, fetchFromGitHub, six, setuptools }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, snap7
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-snap7";
|
||||
version = "1.1";
|
||||
version = "1.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gijzelaerr";
|
||||
repo = "python-snap7";
|
||||
rev = version;
|
||||
sha256 = "18z13wb2q5q3msp9w3wddg1byp7picczw4ng8w1ccj4npidxsqv8";
|
||||
rev = "refs/tags/${version}";
|
||||
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 a new issue