2018-10-25 20:23:07 +01: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 10:25:35 +01:00
|
|
|
pname = "pytest-django";
|
2018-11-18 15:10:28 +00:00
|
|
|
version = "3.4.4";
|
2017-01-21 20:50:13 +00:00
|
|
|
|
2017-09-01 08:55:19 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-18 15:10:28 +00:00
|
|
|
sha256 = "07zl2438gavrcykva6i2lpxmzgf90h4xlm3nqgd7wsqz2yh727zy";
|
2017-01-21 20:50:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest setuptools_scm ];
|
2018-10-25 20:23:07 +01:00
|
|
|
checkInputs = [ 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";
|
|
|
|
homepage = http://pytest-django.readthedocs.org/en/latest/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|