Files
nixpkgs/pkgs/development/python-modules/factory-boy/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

66 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
django,
faker,
fetchPypi,
flask,
flask-sqlalchemy,
mongoengine,
pytestCheckHook,
pythonOlder,
mongomock,
sqlalchemy,
sqlalchemy-utils,
setuptools,
}:
buildPythonPackage rec {
pname = "factory-boy";
version = "3.3.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "factory_boy";
inherit version;
hash = "sha256-hmhi0iYSjfrH8rQWAofomdr1TyYSd4Mn3QPQ4ssePQM=";
};
build-system = [ setuptools ];
dependencies = [ faker ];
nativeCheckInputs = [
django
flask
flask-sqlalchemy
mongoengine
mongomock
pytestCheckHook
sqlalchemy
sqlalchemy-utils
];
disabledTests = [
# Test checks for MongoDB requires an a running DB
"MongoEngineTestCase"
];
disabledTestPaths = [
# incompatible with latest flask-sqlalchemy
"examples/flask_alchemy/test_demoapp.py"
];
pythonImportsCheck = [ "factory" ];
meta = {
description = "Python package to create factories for complex objects";
homepage = "https://github.com/rbarrois/factory_boy";
changelog = "https://github.com/FactoryBoy/factory_boy/blob/${version}/docs/changelog.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}