python312Packages.asteval: refactor

This commit is contained in:
Fabian Affolter 2024-04-20 12:24:46 +02:00
parent 168e3185b0
commit f35531bc9e
1 changed files with 7 additions and 7 deletions

View File

@ -9,23 +9,23 @@
buildPythonPackage rec {
pname = "asteval";
version = "0.9.31";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "newville";
repo = pname;
owner = "lmfit";
repo = "asteval";
rev = "refs/tags/${version}";
hash = "sha256-XIRDm/loZOOPQ7UO/XAo86TzhtHHRrnWFU7MNI4f1vM=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=asteval --cov-report xml" ""
--replace-fail " --cov=asteval --cov-report xml" ""
'';
nativeBuildInputs = [
build-system = [
setuptools-scm
];
@ -44,8 +44,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 ];
};