nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pbr
5, sentinels
6, six
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "mongomock";
12 version = "4.0.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-sYMsN0jUdETBiGc3PlzqdUwub2RKDPv9Zn8Xj2i97Pw=";
17 };
18
19 nativeBuildInputs = [
20 pbr
21 ];
22
23 propagatedBuildInputs = [
24 sentinels
25 six
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "mongomock" ];
33
34 meta = with lib; {
35 homepage = "https://github.com/mongomock/mongomock";
36 description = "Fake pymongo stub for testing simple MongoDB-dependent code";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ gador ];
39 };
40}