nixpkgs/pkgs/development/python-modules/dpath/default.nix

39 lines
757 B
Nix
Raw Normal View History

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
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
meta = with lib; {
2021-09-03 07:27:42 +01:00
description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath";
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
};
}