mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
44 lines
786 B
Nix
44 lines
786 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, msgpack
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, ruamel-yaml
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-box";
|
|
version = "5.4.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cdgriffith";
|
|
repo = "Box";
|
|
rev = version;
|
|
sha256 = "sha256-SkteajcWG7rBFMm6Xp6QCfkZfwthRituGL/RtICbtYk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|