2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
2023-03-30 22:05:00 +00:00
|
|
|
, pythonOlder
|
2021-09-18 10:52:07 +00:00
|
|
|
, mock
|
2023-01-20 10:41:00 +00:00
|
|
|
, nose2
|
2021-09-18 10:52:07 +00:00
|
|
|
, pytestCheckHook
|
2023-03-30 22:05:00 +00:00
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dpath";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.1.6";
|
2023-03-30 22:05:00 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-8eB8cuhgXGqegLZLyPQnFN4Ip4nH3kF+ScP4ehlpLkc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
hypothesis
|
|
|
|
mock
|
2023-01-20 10:41:00 +00:00
|
|
|
nose2
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
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";
|
2023-03-30 22:05:00 +00:00
|
|
|
changelog = "https://github.com/dpath-maintainers/dpath-python/releases/tag/v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ mmlb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|