Robert Schütz
2025-09-23 09:07:33 -07:00
parent 3d061fb0d5
commit 95cd511142
2 changed files with 14 additions and 7 deletions
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
approvaltests,
pythonOlder,
setuptools,
typing-extensions,
}:
@@ -10,16 +9,15 @@
buildPythonPackage {
pname = "approval-utilities";
inherit (approvaltests) version src;
disabled = pythonOlder "3.7";
pyproject = true;
postPatch = ''
postPatch = approvaltests.postPatch or "" + ''
mv setup.approval_utilities.py setup.py
'';
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
# used in approval_utilities/utilities/time_utilities.py
typing-extensions
];
@@ -12,6 +12,7 @@
pytest,
pytest-asyncio,
pytestCheckHook,
pyyaml,
setuptools,
testfixtures,
typing-extensions,
@@ -19,16 +20,23 @@
buildPythonPackage rec {
pname = "approvaltests";
version = "15.0.0";
version = "15.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "approvals";
repo = "ApprovalTests.Python";
tag = "v${version}";
hash = "sha256-lXc81hQzxHxpg96OSWkkWmdmLOf4nU56dIKYVgLo+s8=";
hash = "sha256-cOaL8u5q9kx+yLB0e/ALnGYYGF5v50wsIIF1UUTPe1Y=";
};
postPatch = ''
echo 'version_number = "${version}"' > version.py
mv .github approvaltests approval_utilities tests setup
cd setup
rm setup.cfg
'';
build-system = [ setuptools ];
dependencies = [
@@ -47,6 +55,7 @@ buildPythonPackage rec {
numpy
pytest-asyncio
pytestCheckHook
pyyaml
];
disabledTests = [