2018-10-25 19:23:07 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, django
|
|
|
|
, setuptools_scm
|
|
|
|
, django-configurations
|
|
|
|
, pytest_xdist
|
|
|
|
, six
|
2017-01-21 20:50:13 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 09:25:35 +00:00
|
|
|
pname = "pytest-django";
|
2019-10-24 06:47:45 +00:00
|
|
|
version = "3.6.0";
|
2017-01-21 20:50:13 +00:00
|
|
|
|
2017-09-01 07:55:19 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:45 +00:00
|
|
|
sha256 = "b6c900461a6a7c450dcf11736cabc289a90f5d6f28ef74c46e32e86ffd16a4bd";
|
2017-01-21 20:50:13 +00:00
|
|
|
};
|
|
|
|
|
2019-01-05 10:54:27 +00:00
|
|
|
nativeBuildInputs = [ pytest setuptools_scm ];
|
|
|
|
checkInputs = [ pytest django-configurations pytest_xdist six ];
|
2017-01-21 20:50:13 +00:00
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2017-03-16 11:39:43 +00:00
|
|
|
# Complicated. Requires Django setup.
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-01-21 20:50:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "py.test plugin for testing of Django applications";
|
2019-04-22 08:24:21 +00:00
|
|
|
homepage = https://pytest-django.readthedocs.org/en/latest/;
|
2017-01-21 20:50:13 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|