nixpkgs/pkgs/development/python-modules/python-box/default.nix
2021-03-30 17:35:59 -07:00

43 lines
787 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, msgpack
, pytestCheckHook
, pythonOlder
, pyyaml
, ruamel_yaml
, toml
}:
buildPythonPackage rec {
pname = "python-box";
version = "5.3.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cdgriffith";
repo = "Box";
rev = version;
sha256 = "0fhmkjdcacpwyg7fajqfvnv3n9xd9rxjdpvi8z3j73a1gls36gf4";
};
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 ];
};
}