Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 django, 6 pytestCheckHook, 7 pytest-django, 8}: 9 10buildPythonPackage rec { 11 pname = "jsonfield"; 12 version = "3.1.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0yl828cd0m8jsyr4di6hcjdqmi31ijh5vk57mbpfl7p2gmcq8kky"; 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}