0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
38 lines
758 B
Nix
38 lines
758 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hypothesis
|
|
, isPy27
|
|
, mock
|
|
, nose2
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dpath";
|
|
version = "2.1.3";
|
|
|
|
disabled = isPy27; # uses python3 imports
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-0aeg5kJ9CkFWx5LILK8fAQlgP2is55LjbKRZb9LLjZ0=";
|
|
};
|
|
|
|
# use pytest as nosetests hangs
|
|
checkInputs = [
|
|
hypothesis
|
|
mock
|
|
nose2
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "dpath" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
|
|
homepage = "https://github.com/akesterson/dpath-python";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ mmlb ];
|
|
};
|
|
}
|