2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, msgpack
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, ruamel_yaml
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-box";
|
2021-08-23 08:02:39 +00:00
|
|
|
version = "5.4.1";
|
2021-04-05 15:23:46 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdgriffith";
|
|
|
|
repo = "Box";
|
|
|
|
rev = version;
|
2021-08-23 08:02:39 +00:00
|
|
|
sha256 = "sha256-SkteajcWG7rBFMm6Xp6QCfkZfwthRituGL/RtICbtYk=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msgpack
|
|
|
|
pyyaml
|
|
|
|
ruamel_yaml
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|