Skip to content

Commit ea78c60

Browse files
authored
python3Packages.pylddwrap: set pyproject = true, fix flaky build (NixOS#400032)
2 parents fe09eac + b0ad9fa commit ea78c60

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pkgs/development/python-modules/deal-solver/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ buildPythonPackage rec {
4545

4646
pythonImportsCheck = [ "deal_solver" ];
4747

48+
disabledTests = [
49+
# Flaky tests, sometimes it works sometimes it doesn't
50+
"test_expr_asserts_ok"
51+
"test_fuzz_math_floats"
52+
];
53+
4854
meta = with lib; {
4955
description = "Z3-powered solver (theorem prover) for deal";
5056
homepage = "https://github.com/life4/deal-solver";

pkgs/development/python-modules/pylddwrap/default.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@
77
pytestCheckHook,
88
pythonOlder,
99
replaceVars,
10+
setuptools,
1011
typing-extensions,
1112
}:
1213

1314
buildPythonPackage rec {
1415
pname = "pylddwrap";
1516
version = "1.2.2";
16-
format = "setuptools";
17+
pyproject = true;
1718
disabled = pythonOlder "3.6";
1819

1920
src = fetchFromGitHub {
2021
owner = "Parquery";
21-
repo = pname;
22+
repo = "pylddwrap";
2223
rev = "v${version}";
2324
hash = "sha256-Gm82VRu8GP52BohQzpMUJfh6q2tiUA2GJWOcG7ymGgg=";
2425
};
@@ -35,6 +36,8 @@ buildPythonPackage rec {
3536
rm -f $out/{LICENSE,README.rst,requirements.txt}
3637
'';
3738

39+
build-system = [ setuptools ];
40+
3841
propagatedBuildInputs = [
3942
icontract
4043
typing-extensions

0 commit comments

Comments
 (0)