1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyheck
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "dotwiz";
11 version = "0.4.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "rnag";
18 repo = "dotwiz";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-ABmkwpJ40JceNJieW5bhg0gqWNrR6Wxj84nLCjKU11A=";
21 };
22
23 propagatedBuildInputs = [
24 pyheck
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "dotwiz"
33 ];
34
35 pytestFlagsArray = [
36 "--ignore=benchmarks"
37 "--ignore-glob=*integration*"
38 ];
39
40 meta = with lib; {
41 description = "Dict subclass that supports dot access notation";
42 homepage = "https://github.com/rnag/dotwiz";
43 changelog = "https://github.com/rnag/dotwiz/blob/v${version}/HISTORY.rst";
44 license = licenses.mit;
45 maintainers = with maintainers; [ fab ];
46 };
47}