python311Packages.pysml: disable on unsupported Python releases
This commit is contained in:
parent
64bdaffb05
commit
620e0bf44f
|
@ -5,6 +5,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pyserial-asyncio
|
, pyserial-asyncio
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -12,10 +13,12 @@ buildPythonPackage rec {
|
||||||
version = "0.0.12";
|
version = "0.0.12";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mtdcr";
|
owner = "mtdcr";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-DgfTSlgDC92l/hOgrMZrkZi1wzRUDY8tNl4xU3OQgJ8=";
|
hash = "sha256-DgfTSlgDC92l/hOgrMZrkZi1wzRUDY8tNl4xU3OQgJ8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -32,7 +35,9 @@ buildPythonPackage rec {
|
||||||
# Project has no tests
|
# Project has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "sml" ];
|
pythonImportsCheck = [
|
||||||
|
"sml"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library for EDL21 smart meters using Smart Message Language (SML)";
|
description = "Python library for EDL21 smart meters using Smart Message Language (SML)";
|
||||||
|
|
Loading…
Reference in a new issue