2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dpath";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.0.6";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
disabled = isPy27; # uses python3 imports
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-Wh3a5SIz+8jvgbFfuFBzqBEmu0NpjT86G2qvVhpGzcA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
# use pytest as nosetests hangs
|
2021-09-18 10:52:07 +00:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dpath" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/akesterson/dpath-python";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ mmlb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|