1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
38 lines
753 B
Nix
38 lines
753 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyqt5,
|
|
asyncua,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "opcua-widgets";
|
|
version = "0.6.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FreeOpcUa";
|
|
repo = "opcua-widgets";
|
|
rev = version;
|
|
hash = "sha256-ABJlKYN5H/1k8ynvSTSoJBX12vTTyavuNUAmTJ84mn0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyqt5
|
|
asyncua
|
|
];
|
|
|
|
pythonImportsCheck = [ "uawidgets" ];
|
|
|
|
#This test is broken, when updating this package check if the test was fixed.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Common widgets for opcua-modeler og opcua-client-gui";
|
|
homepage = "https://github.com/FreeOpcUa/opcua-widgets";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
};
|
|
}
|