depot/third_party/nixpkgs/pkgs/development/python-modules/jsonfield/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

24 lines
735 B
Nix

{ lib, fetchPypi, buildPythonPackage, django, pytestCheckHook, pytest-django }:
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 ];
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 ];
};
}