Unverified Commit 33e5f2ae authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #305517 from fabaff/asteval-bump

python312Packages.asteval: 0.9.31 -> 0.9.32
parents e575a6be 7429e993
Loading
Loading
Loading
Loading
+19 −24
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools-scm
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "asteval";
  version = "0.9.31";
  format = "setuptools";
  version = "0.9.32";
  pyproject = true;

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "newville";
    repo = pname;
    owner = "lmfit";
    repo = "asteval";
    rev = "refs/tags/${version}";
    hash = "sha256-XIRDm/loZOOPQ7UO/XAo86TzhtHHRrnWFU7MNI4f1vM=";
    hash = "sha256-3eML5lEKEUlp3Fwdgvk31an83x8no5ichskKvzYJDsE=";
  };

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace " --cov=asteval --cov-report xml" ""
      --replace-fail " --cov=asteval --cov-report xml" ""
  '';

  nativeBuildInputs = [
    setuptools-scm
  ];
  build-system = [ setuptools-scm ];

  nativeCheckInputs = [
    pytestCheckHook
  ];
  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [
    "asteval"
  ];
  pythonImportsCheck = [ "asteval" ];

  disabledTests = [
    # AssertionError: 'ImportError' != None
@@ -44,8 +39,8 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "AST evaluator of Python expression using ast module";
    homepage = "https://github.com/newville/asteval";
    changelog = "https://github.com/newville/asteval/releases/tag/${version}";
    homepage = "https://github.com/lmfit/asteval";
    changelog = "https://github.com/lmfit/asteval/releases/tag/${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };