1{ lib
2, buildPythonPackage
3, fetchPypi
4, hypothesis
5, isPy27
6, mock
7, nose
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "dpath";
13 version = "2.0.6";
14
15 disabled = isPy27; # uses python3 imports
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-Wh3a5SIz+8jvgbFfuFBzqBEmu0NpjT86G2qvVhpGzcA=";
20 };
21
22 # use pytest as nosetests hangs
23 checkInputs = [
24 hypothesis
25 mock
26 nose
27 pytestCheckHook
28 ];
29
30 pythonImportsCheck = [ "dpath" ];
31
32 meta = with lib; {
33 description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
34 homepage = "https://github.com/akesterson/dpath-python";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ mmlb ];
37 };
38}