mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
25 lines
741 B
Nix
25 lines
741 B
Nix
{ lib, fetchPypi, buildPythonPackage, django, pytestCheckHook, pytest-django }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonfield";
|
|
version = "3.1.0";
|
|
|
|
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 ];
|
|
};
|
|
}
|