Commit aba8168d authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.cexprtk: modernize

parent d1f4fdea
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3,18 +3,21 @@
  fetchPypi,
  buildPythonPackage,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "cexprtk";
  version = "0.4.2";
  format = "setuptools";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-sBLkHco0u2iEsdUxmPW2ONP/Fe08p0fOVJLmzz3t4os=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cexprtk" ];
@@ -22,6 +25,7 @@ buildPythonPackage rec {
  meta = {
    description = "Mathematical expression parser, cython wrapper";
    homepage = "https://github.com/mjdrushton/cexprtk";
    changelog = "https://github.com/mjdrushton/cexprtk/blob/${version}/CHANGES.md";
    license = lib.licenses.cpl10;
    maintainers = with lib.maintainers; [ onny ];
  };