Files
nixpkgs/pkgs/development/python-modules/glom/default.nix
T
Martin Weinelt 8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

74 lines
1.5 KiB
Nix

{
lib,
attrs,
boltons,
buildPythonPackage,
face,
fetchPypi,
pytestCheckHook,
pythonAtLeast,
pyyaml,
setuptools,
}:
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 = {
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";
};
}