python3Packages.python-juicenet: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-03-12 10:08:30 +01:00 committed by GitHub
parent 8d2b4a0018
commit 660fe8742a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,22 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-juicenet";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jesserockz";
repo = "python-juicenet";
rev = "v${version}";
sha256 = "sha256-5RKnVwOfEHzFZCiC8OUpS8exKrENK+I3Ok45HlKEvtU=";
hash = "sha256-5RKnVwOfEHzFZCiC8OUpS8exKrENK+I3Ok45HlKEvtU=";
};
propagatedBuildInputs = [
@ -22,7 +26,9 @@ buildPythonPackage rec {
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "pyjuicenet" ];
pythonImportsCheck = [
"pyjuicenet"
];
meta = with lib; {
description = "Read and control Juicenet/Juicepoint/Juicebox based EVSE devices";