mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00

This reverts commit65a333600d
. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
six,
|
|
pypblib,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-sat";
|
|
version = "0.1.7.dev1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pysathq";
|
|
repo = "pysat";
|
|
rev = version;
|
|
hash = "sha256-zGdgD+SgoMB7/zDQI/trmV70l91TB7OkDxaJ30W3dkI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
pypblib
|
|
];
|
|
|
|
nativeCheckInputs = [ 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";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marius851000 ];
|
|
};
|
|
}
|