Files
nixpkgs/pkgs/development/python-modules/mockupdb/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
926 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pymongo,
pythonAtLeast,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mockupdb";
version = "1.8.1";
format = "setuptools";
# use the removed ssl.wrap_socket function
disabled = pythonOlder "3.9" || pythonAtLeast "3.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-020OW2RF/5FB400BL6K13+WJhHqh4+y413QHSWKvlE4=";
};
propagatedBuildInputs = [ pymongo ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mockupdb" ];
disabledTests = [
# AssertionError: expected to receive Request(), got nothing
"test_flags"
"test_iteration"
"test_ok"
"test_ssl_basic"
"test_unix_domain_socket"
];
meta = {
description = "Simulate a MongoDB server";
license = lib.licenses.asl20;
homepage = "https://github.com/ajdavis/mongo-mockup-db";
maintainers = [ ];
};
}