Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
788 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchPypi,
buildPythonPackage,
django,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "jsonfield";
version = "3.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ylOHG8MwiuT0zdw7T5ntXG/Gq7GDL7+0mbxtpWbHDko=";
};
nativeCheckInputs = [
pytestCheckHook
pytest-django
];
preCheck = "export DJANGO_SETTINGS_MODULE=tests.settings";
propagatedBuildInputs = [ django ];
meta = with lib; {
description = "Reusable model field that allows you to store validated JSON, automatically handling serialization to and from the database";
homepage = "https://github.com/rpkilby/jsonfield/";
license = licenses.mit;
maintainers = with maintainers; [ mrmebelman ];
};
}