Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, django 4, faker 5, fetchPypi 6, flask 7, flask-sqlalchemy 8, mongoengine 9, pytestCheckHook 10, sqlalchemy 11}: 12 13buildPythonPackage rec { 14 pname = "factory-boy"; 15 version = "3.2.1"; 16 format = "setuptools"; 17 18 src = fetchPypi { 19 pname = "factory_boy"; 20 inherit version; 21 hash = "sha256-qY0newwEfHXrbkq4UIp/gfsD0sshmG9ieRNUbveipV4="; 22 }; 23 24 propagatedBuildInputs = [ 25 faker 26 ]; 27 28 nativeCheckInputs = [ 29 django 30 flask 31 flask-sqlalchemy 32 mongoengine 33 pytestCheckHook 34 sqlalchemy 35 ]; 36 37 # Checks for MongoDB requires an a running DB 38 disabledTests = [ 39 "MongoEngineTestCase" 40 ]; 41 42 disabledTestPaths = [ 43 # incompatible with latest flask-sqlalchemy 44 "examples/flask_alchemy/test_demoapp.py" 45 ]; 46 47 pythonImportsCheck = [ 48 "factory" 49 ]; 50 51 meta = with lib; { 52 description = "Python package to create factories for complex objects"; 53 homepage = "https://github.com/rbarrois/factory_boy"; 54 license = with licenses; [ mit ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}