Files
nixpkgs/pkgs/development/python-modules/deal-solver/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

60 lines
1.2 KiB
Nix

{
lib,
astroid,
buildPythonPackage,
fetchFromGitHub,
flit-core,
hypothesis,
pytest-cov-stub,
pytest-xdist,
pytestCheckHook,
z3-solver,
}:
buildPythonPackage rec {
pname = "deal-solver";
version = "0.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "life4";
repo = "deal-solver";
tag = version;
hash = "sha256-DAOeQLFR/JED32uJSW7W9+Xx5f1Et05W8Fp+Vm7sfZo=";
};
build-system = [ flit-core ];
# z3 does not provide a dist-info, so python-runtime-deps-check will fail
pythonRemoveDeps = [ "z3-solver" ];
dependencies = [
z3-solver
astroid
]
++ z3-solver.requiredPythonModules;
nativeCheckInputs = [
hypothesis
pytest-cov-stub
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "deal_solver" ];
disabledTests = [
# Flaky tests, sometimes it works sometimes it doesn't
"test_expr_asserts_ok"
"test_fuzz_math_floats"
];
meta = {
description = "Z3-powered solver (theorem prover) for deal";
homepage = "https://github.com/life4/deal-solver";
changelog = "https://github.com/life4/deal-solver/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gador ];
};
}