forked from mirrors/nixpkgs
Merge pull request #107536 from MrMebelMan/init/jsonfield_3_1_0
python3Packages.jsonfield: init at 3.1.0
This commit is contained in:
commit
534b82f743
24
pkgs/development/python-modules/jsonfield/default.nix
Normal file
24
pkgs/development/python-modules/jsonfield/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, 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 stdenv.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 ];
|
||||
};
|
||||
}
|
|
@ -3176,6 +3176,8 @@ in {
|
|||
|
||||
jsondiff = callPackage ../development/python-modules/jsondiff { };
|
||||
|
||||
jsonfield = callPackage ../development/python-modules/jsonfield { };
|
||||
|
||||
jsonlines = callPackage ../development/python-modules/jsonlines { };
|
||||
|
||||
jsonmerge = callPackage ../development/python-modules/jsonmerge { };
|
||||
|
|
Loading…
Reference in a new issue