2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, django
|
|
|
|
, setuptools_scm
|
|
|
|
, django-configurations
|
|
|
|
, pytest_xdist
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-django";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "4.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "26f02c16d36fd4c8672390deebe3413678d89f30720c16efb8b2a6bf63b9041f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytest setuptools_scm ];
|
|
|
|
checkInputs = [ pytest django-configurations pytest_xdist six ];
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
|
|
|
# Complicated. Requires Django setup.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "py.test plugin for testing of Django applications";
|
|
|
|
homepage = "https://pytest-django.readthedocs.org/en/latest/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|