mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
26 lines
766 B
Nix
26 lines
766 B
Nix
{ lib, fetchPypi, buildPythonPackage, django, pytestCheckHook, pytest-django }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonfield";
|
|
version = "3.1.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0yl828cd0m8jsyr4di6hcjdqmi31ijh5vk57mbpfl7p2gmcq8kky";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|