2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, cython_3
|
2021-04-05 15:23:46 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, msgpack
|
2023-02-09 11:40:11 +00:00
|
|
|
, poetry-core
|
2021-04-05 15:23:46 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2021-12-06 16:07:01 +00:00
|
|
|
, ruamel-yaml
|
2023-02-09 11:40:11 +00:00
|
|
|
, setuptools
|
2021-04-05 15:23:46 +00:00
|
|
|
, toml
|
2022-11-02 22:02:43 +00:00
|
|
|
, tomli
|
|
|
|
, tomli-w
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-box";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "7.1.1";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "setuptools";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdgriffith";
|
|
|
|
repo = "Box";
|
2022-11-02 22:02:43 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-oxT2y3um6BZ3bwYa+LWBoTgU+9b+V7XtQdCdECU3Gu0=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
cython_3
|
2023-02-09 11:40:11 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
pytestCheckHook
|
2022-11-02 22:02:43 +00:00
|
|
|
] ++ passthru.optional-dependencies.all;
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"box"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python dictionaries with advanced dot notation access";
|
|
|
|
homepage = "https://github.com/cdgriffith/Box";
|
2023-02-09 11:40:11 +00:00
|
|
|
changelog = "https://github.com/cdgriffith/Box/blob/${version}/CHANGES.rst";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|