2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
|
|
|
z3-solver,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "model-checker";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.4.9";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "model_checker";
|
|
|
|
inherit version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-BUkbCllM2qN5yKTvte2iwnmBXQAzu2N8LTGRfvOTKUQ=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# z3 does not provide a dist-info, so python-runtime-deps-check will fail
|
|
|
|
pythonRemoveDeps = [ "z3-solver" ];
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
|
|
|
|
dependencies = [ z3-solver ];
|
|
|
|
|
|
|
|
# Tests have multiple issues, ImportError, TypeError, etc.
|
|
|
|
# Check with the next release > 0.3.13
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "model_checker" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Hyperintensional theorem prover for counterfactual conditionals and modal operators";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://pypi.org/project/model-checker/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|