1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 django, 6 pytestCheckHook, 7 pytest-django, 8}: 9 10buildPythonPackage rec { 11 pname = "jsonfield"; 12 version = "3.2.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-ylOHG8MwiuT0zdw7T5ntXG/Gq7GDL7+0mbxtpWbHDko="; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 pytest-django 23 ]; 24 25 preCheck = "export DJANGO_SETTINGS_MODULE=tests.settings"; 26 27 propagatedBuildInputs = [ django ]; 28 29 meta = with lib; { 30 description = "Reusable model field that allows you to store validated JSON, automatically handling serialization to and from the database"; 31 homepage = "https://github.com/rpkilby/jsonfield/"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ mrmebelman ]; 34 }; 35}