Files
nixpkgs/pkgs/development/python-modules/glom/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

77 lines
1.6 KiB
Nix

{
lib,
attrs,
boltons,
buildPythonPackage,
face,
fetchPypi,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
pyyaml,
setuptools,
tomli,
}:
buildPythonPackage rec {
pname = "glom";
version = "25.12.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-GufaiL42k99ArSe99Xp2WlXAdchslxvN3WeSdAPrAGk=";
};
build-system = [ setuptools ];
dependencies = [
boltons
attrs
face
];
optional-dependencies = {
toml = lib.optionals (pythonOlder "3.11") [ tomli ];
yaml = [ pyyaml ];
};
nativeCheckInputs = [
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
preCheck = ''
# test_cli.py checks the output of running "glom"
export PATH=$out/bin:$PATH
'';
disabledTests = lib.optionals (pythonAtLeast "3.11") [
"test_regular_error_stack"
"test_long_target_repr"
"test_glom_error_stack"
"test_glom_error_double_stack"
"test_branching_stack"
"test_midway_branch"
"test_partially_failing_branch"
"test_coalesce_stack"
"test_nesting_stack"
"test_3_11_byte_code_caret"
];
pythonImportsCheck = [ "glom" ];
meta = {
description = "Module for restructuring data";
longDescription = ''
glom helps pull together objects from other objects in a
declarative, dynamic, and downright simple way.
'';
homepage = "https://github.com/mahmoud/glom";
changelog = "https://github.com/mahmoud/glom/blob/v${version}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ twey ];
mainProgram = "glom";
};
}