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