Files
nixpkgs/pkgs/development/python-modules/in-n-out/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

53 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
cython,
fetchPypi,
pytestCheckHook,
pythonAtLeast,
hatchling,
hatch-vcs,
toolz,
}:
buildPythonPackage rec {
pname = "in-n-out";
version = "0.2.1";
pyproject = true;
src = fetchPypi {
pname = "in_n_out";
inherit version;
hash = "sha256-Q83it96YHUGm1wYYore9mJSBCVkipT6tTcdfK71d/+o=";
};
build-system = [
cython
hatchling
hatch-vcs
];
nativeCheckInputs = [
pytestCheckHook
toolz
];
pythonImportsCheck = [ "in_n_out" ];
disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [
# Fatal Python error
"tests/test_injection.py"
"tests/test_processors.py"
"tests/test_providers.py"
"tests/test_store.py"
];
meta = {
description = "Module for dependency injection and result processing";
homepage = "https://github.com/pyapp-kit/in-n-out";
changelog = "https://github.com/pyapp-kit/in-n-out/blob/v${version}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}