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