python310Packages.lupa: disable on unsupported Python releases

- add format
This commit is contained in:
Fabian Affolter 2023-04-04 15:45:22 +02:00 committed by GitHub
parent 9ca9baab51
commit a32219871e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,20 +2,28 @@
, buildPythonPackage
, cython
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "lupa";
version = "2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-rT/vSGvnrd3TSf6anDk3iQYTEs+Y68UztIm+NPSEy3k=";
};
nativeBuildInputs = [ cython ];
nativeBuildInputs = [
cython
];
pythonImportsCheck = [ "lupa" ];
pythonImportsCheck = [
"lupa"
];
meta = with lib; {
description = "Lua in Python";