python3Packages.python-sat: fix on darwin

This commit is contained in:
Dmitry Kalinkin 2021-12-23 00:42:22 -05:00
parent af46b31130
commit 71088b0b10
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -15,6 +15,19 @@ buildPythonPackage rec {
checkInputs = [ pytestCheckHook ];
# https://github.com/pysathq/pysat/pull/102
postPatch = ''
# Fix for case-insensitive filesystem
cat >>solvers/patches/cadical.patch <<EOF
diff --git solvers/cadical/VERSION solvers/cdc/VERSION
deleted file mode 100644
--- solvers/cadical/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.0.3
EOF
'';
meta = with lib; {
description = "Toolkit to provide interface for various SAT (without optional dependancy py-aiger-cnf)";
homepage = "https://github.com/pysathq/pysat";