Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 43 lines 858 B 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.0"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720"; 20 }; 21 22 propagatedBuildInputs = [ faker ]; 23 24 checkInputs = [ 25 django 26 flask 27 flask_sqlalchemy 28 mongoengine 29 pytestCheckHook 30 sqlalchemy 31 ]; 32 33 # Checks for MongoDB requires an a running DB 34 disabledTests = [ "MongoEngineTestCase" ]; 35 pythonImportsCheck = [ "factory" ]; 36 37 meta = with lib; { 38 description = "Python package to create factories for complex objects"; 39 homepage = "https://github.com/rbarrois/factory_boy"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}