Files
nixpkgs/pkgs/development/python-modules/factory_boy/default.nix
T
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

58 lines
1.0 KiB
Nix

{ lib
, buildPythonPackage
, django
, faker
, fetchPypi
, flask
, flask-sqlalchemy
, mongoengine
, pytestCheckHook
, sqlalchemy
}:
buildPythonPackage rec {
pname = "factory-boy";
version = "3.2.1";
format = "setuptools";
src = fetchPypi {
pname = "factory_boy";
inherit version;
sha256 = "sha256-qY0newwEfHXrbkq4UIp/gfsD0sshmG9ieRNUbveipV4=";
};
propagatedBuildInputs = [
faker
];
nativeCheckInputs = [
django
flask
flask-sqlalchemy
mongoengine
pytestCheckHook
sqlalchemy
];
# Checks for MongoDB requires an a running DB
disabledTests = [
"MongoEngineTestCase"
];
disabledTestPaths = [
# incompatible with latest flask-sqlalchemy
"examples/flask_alchemy/test_demoapp.py"
];
pythonImportsCheck = [
"factory"
];
meta = with lib; {
description = "Python package to create factories for complex objects";
homepage = "https://github.com/rbarrois/factory_boy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}