2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, django
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, django-configurations
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-django";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "4.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "b5171e3798bf7e3fc5ea7072fe87324db67a4dd9f1192b037fed4cc3c1b7f455";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ pytest setuptools-scm ];
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest django-configurations pytest-xdist six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
|
|
|
# Complicated. Requires Django setup.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "py.test plugin for testing of Django applications";
|
|
|
|
homepage = "https://pytest-django.readthedocs.org/en/latest/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|