1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #313353 from fabaff/model-checker

python312Packages.model-checker: init at 0.3.13
This commit is contained in:
Fabian Affolter 2024-05-22 08:26:53 +02:00 committed by GitHub
commit d484aa8e20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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

@ -7616,6 +7616,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 { };