nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, msgpack
5, pytestCheckHook
6, pythonOlder
7, pyyaml
8, ruamel-yaml
9, toml
10}:
11
12buildPythonPackage rec {
13 pname = "python-box";
14 version = "6.0.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "cdgriffith";
21 repo = "Box";
22 rev = version;
23 hash = "sha256-IE2qyRzvrOTymwga+hCwE785sAVTqQtcN1DL/uADpbQ=";
24 };
25
26 propagatedBuildInputs = [
27 msgpack
28 pyyaml
29 ruamel-yaml
30 toml
31 ];
32
33 checkInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "box"
39 ];
40
41 meta = with lib; {
42 description = "Python dictionaries with advanced dot notation access";
43 homepage = "https://github.com/cdgriffith/Box";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}