nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 62 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 django, 5 faker, 6 fetchPypi, 7 flask, 8 flask-sqlalchemy, 9 mongoengine, 10 pytestCheckHook, 11 mongomock, 12 sqlalchemy, 13 sqlalchemy-utils, 14 setuptools, 15}: 16 17buildPythonPackage rec { 18 pname = "factory-boy"; 19 version = "3.3.3"; 20 pyproject = true; 21 22 src = fetchPypi { 23 pname = "factory_boy"; 24 inherit version; 25 hash = "sha256-hmhi0iYSjfrH8rQWAofomdr1TyYSd4Mn3QPQ4ssePQM="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ faker ]; 31 32 nativeCheckInputs = [ 33 django 34 flask 35 flask-sqlalchemy 36 mongoengine 37 mongomock 38 pytestCheckHook 39 sqlalchemy 40 sqlalchemy-utils 41 ]; 42 43 disabledTests = [ 44 # Test checks for MongoDB requires an a running DB 45 "MongoEngineTestCase" 46 ]; 47 48 disabledTestPaths = [ 49 # incompatible with latest flask-sqlalchemy 50 "examples/flask_alchemy/test_demoapp.py" 51 ]; 52 53 pythonImportsCheck = [ "factory" ]; 54 55 meta = { 56 description = "Python package to create factories for complex objects"; 57 homepage = "https://github.com/rbarrois/factory_boy"; 58 changelog = "https://github.com/FactoryBoy/factory_boy/blob/${version}/docs/changelog.rst"; 59 license = lib.licenses.mit; 60 maintainers = with lib.maintainers; [ fab ]; 61 }; 62}