python311Packages.commandparse: disable on unsupported Python releases

This commit is contained in:
Fabian Affolter
2023-08-03 18:25:51 +02:00
committed by GitHub
parent 5a4e5d7b12
commit 52d6cbc56d
@@ -1,11 +1,15 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "commandparse";
version = "1.1.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
@@ -14,7 +18,10 @@ buildPythonPackage rec {
# tests only distributed upstream source, not PyPi
doCheck = false;
pythonImportsCheck = [ "commandparse" ];
pythonImportsCheck = [
"commandparse"
];
meta = with lib; {
description = "Python module to parse command based CLI application";