python312Packages.model-checker: init at 0.3.13

A hyperintensional theorem prover for counterfactual conditionals
and modal operators

https://pypi.org/project/model-checker/
This commit is contained in:
Fabian Affolter 2024-05-21 12:00:16 +02:00
parent 27851edc9d
commit 4e910390b4
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pythonOlder,
z3-solver,
pythonRelaxDepsHook,
}:
buildPythonPackage rec {
pname = "model-checker";
version = "0.3.13";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "model_checker";
inherit version;
hash = "sha256-3LVes+orRl8tNhhbUUDa1VM/tFf8Y1pAzKknmrjA6e4=";
};
# 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; {
description = "A hyperintensional theorem prover for counterfactual conditionals and modal operators";
homepage = "https://pypi.org/project/model-checker/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -7622,6 +7622,8 @@ self: super: with self; {
model-bakery = callPackage ../development/python-modules/model-bakery { };
model-checker = callPackage ../development/python-modules/model-checker { };
modelcif = callPackage ../development/python-modules/modelcif { };
modeled = callPackage ../development/python-modules/modeled { };