Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pythonOlder, 7 z3-solver, 8}: 9 10buildPythonPackage rec { 11 pname = "model-checker"; 12 version = "0.4.12"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchPypi { 18 pname = "model_checker"; 19 inherit version; 20 hash = "sha256-bgVtOpWx5jytVxSz/WKLqLm+hVKbwIy+Fy5nEj/Nwt4="; 21 }; 22 23 # z3 does not provide a dist-info, so python-runtime-deps-check will fail 24 pythonRemoveDeps = [ "z3-solver" ]; 25 26 build-system = [ setuptools ]; 27 28 29 dependencies = [ z3-solver ]; 30 31 # Tests have multiple issues, ImportError, TypeError, etc. 32 # Check with the next release > 0.3.13 33 doCheck = false; 34 35 pythonImportsCheck = [ "model_checker" ]; 36 37 meta = with lib; { 38 description = "Hyperintensional theorem prover for counterfactual conditionals and modal operators"; 39 homepage = "https://pypi.org/project/model-checker/"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}