depot/third_party/nixpkgs/pkgs/development/python-modules/python-box/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

47 lines
816 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, msgpack
, pytestCheckHook
, pythonOlder
, pyyaml
, ruamel-yaml
, toml
}:
buildPythonPackage rec {
pname = "python-box";
version = "6.0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cdgriffith";
repo = "Box";
rev = version;
hash = "sha256-kH8qHAFuYDXO5Dsl6BpTYCIqh0Xi8Rbwmia+y3sTn6Y=";
};
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 ];
};
}