2020-10-27 00:29:36 +00:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, lib, six, pypblib, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-sat";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.1.7.dev1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-10-27 00:29:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pysathq";
|
|
|
|
repo = "pysat";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-zGdgD+SgoMB7/zDQI/trmV70l91TB7OkDxaJ30W3dkI=";
|
2020-10-27 00:29:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six pypblib ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-10-27 00:29:36 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Toolkit to provide interface for various SAT (without optional dependancy py-aiger-cnf)";
|
|
|
|
homepage = "https://github.com/pysathq/pysat";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marius851000 ];
|
|
|
|
};
|
|
|
|
}
|