Merge pull request #305517 from fabaff/asteval-bump

python312Packages.asteval: 0.9.31 -> 0.9.32
This commit is contained in:
Fabian Affolter 2024-04-26 09:49:06 +02:00 committed by GitHub
commit 33e5f2aeb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 24 deletions

View File

@ -1,41 +1,36 @@
{ 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 ];
};