2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, django, pytestCheckHook, pytest-django }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonfield";
|
|
|
|
version = "3.1.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0yl828cd0m8jsyr4di6hcjdqmi31ijh5vk57mbpfl7p2gmcq8kky";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook pytest-django ];
|
|
|
|
|
|
|
|
preCheck = "export DJANGO_SETTINGS_MODULE=tests.settings";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-05 17:05:55 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|