2021-09-03 07:27:42 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
2018-10-04 21:06:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dpath";
|
2021-09-12 21:20:14 +01:00
|
|
|
version = "2.0.5";
|
2021-09-03 07:27:42 +01:00
|
|
|
|
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;
|
2021-09-12 21:20:14 +01:00
|
|
|
sha256 = "0kk7wl15r305496q13ka4r6n2r13j99rrrpy2b4575j704dk4x7g";
|
2018-10-04 21:06:26 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:03:19 +01:00
|
|
|
# use pytest as nosetests hangs
|
2021-09-03 07:27:42 +01:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dpath" ];
|
2018-10-04 21:06:26 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-09-03 07:27:42 +01:00
|
|
|
description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/akesterson/dpath-python";
|
2021-09-03 07:27:42 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ mmlb ];
|
2018-10-04 21:06:26 +01:00
|
|
|
};
|
|
|
|
}
|