python311Packages.pysml: disable on unsupported Python releases

This commit is contained in:
Fabian Affolter 2023-05-19 03:52:09 +02:00 committed by GitHub
parent 64bdaffb05
commit 620e0bf44f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
, fetchFromGitHub
, poetry-core
, pyserial-asyncio
, pythonOlder
}:
buildPythonPackage rec {
@ -12,10 +13,12 @@ buildPythonPackage rec {
version = "0.0.12";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mtdcr";
repo = pname;
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-DgfTSlgDC92l/hOgrMZrkZi1wzRUDY8tNl4xU3OQgJ8=";
};
@ -32,7 +35,9 @@ buildPythonPackage rec {
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "sml" ];
pythonImportsCheck = [
"sml"
];
meta = with lib; {
description = "Python library for EDL21 smart meters using Smart Message Language (SML)";