1{ stdenv, fetchPypi, buildPythonPackage, isPy27
2, mock, pytestCheckHook, nose, hypothesis
3}:
4
5buildPythonPackage rec {
6 pname = "dpath";
7 version = "2.0.1";
8 disabled = isPy27; # uses python3 imports
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "bea06b5f4ff620a28dfc9848cf4d6b2bfeed34238edeb8ebe815c433b54eb1fa";
13 };
14
15 # use pytest as nosetests hangs
16 checkInputs = [ mock nose pytestCheckHook hypothesis ];
17
18 meta = with stdenv.lib; {
19 homepage = "https://github.com/akesterson/dpath-python";
20 license = [ licenses.mit ];
21 description = "A python library for accessing and searching dictionaries via /slashed/paths ala xpath";
22 maintainers = [ maintainers.mmlb ];
23 };
24}