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 , 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)";