nixpkgs/pkgs/development/python-modules/python-box/default.nix
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

62 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
cython,
fetchFromGitHub,
msgpack,
pytestCheckHook,
pyyaml,
ruamel-yaml,
setuptools,
toml,
tomli-w,
}:
buildPythonPackage rec {
pname = "python-box";
version = "7.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "cdgriffith";
repo = "Box";
tag = version;
hash = "sha256-aVPjIoizqC0OcG5ziy/lvp/JsFSUvcLUqJ03mKViKFs=";
};
build-system = [
cython
setuptools
];
optional-dependencies = {
all = [
msgpack
ruamel-yaml
toml
];
yaml = [ ruamel-yaml ];
ruamel-yaml = [ ruamel-yaml ];
PyYAML = [ pyyaml ];
tomli = [ tomli-w ];
toml = [ toml ];
msgpack = [ msgpack ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.all;
disabledTests = [
# ruamel 8.18.13 update changed white space rules
"test_to_yaml_ruamel"
];
pythonImportsCheck = [ "box" ];
meta = {
description = "Python dictionaries with advanced dot notation access";
homepage = "https://github.com/cdgriffith/Box";
changelog = "https://github.com/cdgriffith/Box/blob/${version}/CHANGES.rst";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}