summary refs log tree commit diff
path: root/pkgs/development/python-modules/mongomock/default.nix
blob: 5e66ad42197cc3562a184b9a5d68b3e449a0c77b (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
39
40
41
42
43
44
45
46
{ lib
, buildPythonPackage
, fetchPypi
, packaging
, pbr
, pytestCheckHook
, pythonOlder
, sentinels
}:

buildPythonPackage rec {
  pname = "mongomock";
  version = "4.1.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30=";
  };

  nativeBuildInputs = [
    pbr
  ];

  propagatedBuildInputs = [
    packaging
    sentinels
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "mongomock"
  ];

  meta = with lib; {
    homepage = "https://github.com/mongomock/mongomock";
    description = "Fake pymongo stub for testing simple MongoDB-dependent code";
    license = licenses.bsd3;
    maintainers = with maintainers; [ gador ];
  };
}