2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonAtLeast,
|
|
|
|
toolz,
|
|
|
|
multipledispatch,
|
|
|
|
py,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-html,
|
|
|
|
pytest-benchmark,
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "logical-unification";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.4.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pythological";
|
|
|
|
repo = "unification";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-uznmlkREFONU1YoI/+mcfb+Yg30NinWvsMxTfHCXzOU=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
toolz
|
|
|
|
multipledispatch
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
py
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-html
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest-benchmark # Needed for the `--benchmark-skip` flag
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
# Failed: DID NOT RAISE <class 'RecursionError'>
|
|
|
|
"test_reify_recursion_limit"
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"--benchmark-skip"
|
|
|
|
"--html=testing-report.html"
|
|
|
|
"--self-contained-html"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "unification" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Straightforward unification in Python that's extensible via generic functions";
|
|
|
|
homepage = "https://github.com/pythological/unification";
|
|
|
|
changelog = "https://github.com/pythological/unification/releases";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ Etjean ];
|
|
|
|
};
|
|
|
|
}
|