1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 23:32:35 +03:00
nixpkgs/pkgs/development/python-modules/python-box/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, msgpack
, pytestCheckHook
, pythonOlder
, pyyaml
, ruamel-yaml
, toml
, tomli
, tomli-w
}:
buildPythonPackage rec {
pname = "python-box";
version = "6.0.2";
2022-03-16 10:21:23 +01:00
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cdgriffith";
repo = "Box";
rev = version;
hash = "sha256-IE2qyRzvrOTymwga+hCwE785sAVTqQtcN1DL/uADpbQ=";
};
passthru.optional-dependencies = {
all = [
msgpack
ruamel-yaml
toml
];
yaml = [
ruamel-yaml
];
ruamel-yaml = [
ruamel-yaml
];
PyYAML = [
pyyaml
];
tomli = [
tomli-w
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
toml = [
toml
];
msgpack = [
msgpack
];
};
checkInputs = [
pytestCheckHook
] ++ passthru.optional-dependencies.all;
2022-03-16 10:21:23 +01:00
pythonImportsCheck = [
"box"
];
meta = with lib; {
description = "Python dictionaries with advanced dot notation access";
homepage = "https://github.com/cdgriffith/Box";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}