2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27
|
2020-06-08 20:03:19 +01:00
|
|
|
, mock, pytestCheckHook, nose, hypothesis
|
2018-10-04 21:06:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dpath";
|
2020-06-06 07:47:06 +01:00
|
|
|
version = "2.0.1";
|
2020-06-16 21:50:24 +01:00
|
|
|
disabled = isPy27; # uses python3 imports
|
2018-10-04 21:06:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:06 +01:00
|
|
|
sha256 = "bea06b5f4ff620a28dfc9848cf4d6b2bfeed34238edeb8ebe815c433b54eb1fa";
|
2018-10-04 21:06:26 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:03:19 +01:00
|
|
|
# use pytest as nosetests hangs
|
|
|
|
checkInputs = [ mock nose pytestCheckHook hypothesis ];
|
2018-10-04 21:06:26 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/akesterson/dpath-python";
|
2018-10-04 21:06:26 +01:00
|
|
|
license = [ licenses.mit ];
|
|
|
|
description = "A python library for accessing and searching dictionaries via /slashed/paths ala xpath";
|
|
|
|
maintainers = [ maintainers.mmlb ];
|
|
|
|
};
|
|
|
|
}
|