2020-06-15 15:56:04 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, isPy27
|
|
|
|
, mock, pytestCheckHook, nose, hypothesis
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dpath";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "2.0.1";
|
|
|
|
disabled = isPy27; # uses python3 imports
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "bea06b5f4ff620a28dfc9848cf4d6b2bfeed34238edeb8ebe815c433b54eb1fa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
# use pytest as nosetests hangs
|
|
|
|
checkInputs = [ mock nose pytestCheckHook hypothesis ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/akesterson/dpath-python";
|
|
|
|
license = [ licenses.mit ];
|
|
|
|
description = "A python library for accessing and searching dictionaries via /slashed/paths ala xpath";
|
|
|
|
maintainers = [ maintainers.mmlb ];
|
|
|
|
};
|
|
|
|
}
|