about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dpath/default.nix
blob: 6c1d142fccc1f0f1b8093de21b8d4b77abd6e5e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchPypi
, hypothesis
, isPy27
, mock
, nose2
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "dpath";
  version = "2.1.4";

  disabled = isPy27; # uses python3 imports

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-M4CnfQ20q/EEElhg/260vQfJfGW4Gq1CpglxcImhvtA=";
  };

  # use pytest as nosetests hangs
  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";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ mmlb ];
  };
}