2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-25 20:23:07 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, django
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2018-10-25 20:23:07 +01:00
|
|
|
, django-configurations
|
2021-07-20 22:08:56 +01:00
|
|
|
, pytest-xdist
|
2018-10-25 20:23:07 +01:00
|
|
|
, six
|
2017-01-21 20:50:13 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "pytest-django";
|
2021-06-18 22:47:34 +01:00
|
|
|
version = "4.4.0";
|
2017-01-21 20:50:13 +00:00
|
|
|
|
2017-09-01 08:55:19 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:34 +01:00
|
|
|
sha256 = "b5171e3798bf7e3fc5ea7072fe87324db67a4dd9f1192b037fed4cc3c1b7f455";
|
2017-01-21 20:50:13 +00:00
|
|
|
};
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
nativeBuildInputs = [ pytest setuptools-scm ];
|
2021-07-20 22:08:56 +01:00
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-21 20:50:13 +00:00
|
|
|
description = "py.test plugin for testing of Django applications";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pytest-django.readthedocs.org/en/latest/";
|
2017-01-21 20:50:13 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|