depot/third_party/nixpkgs/pkgs/development/python-modules/dpath/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
903 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hypothesis,
pythonOlder,
mock,
nose2,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "dpath";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-NPfmMNxV6j8hnlVXJvXaS0sl8iADGcjmkCw5Qljdaj4=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
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";
changelog = "https://github.com/dpath-maintainers/dpath-python/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ mmlb ];
};
}