1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, django
6, setuptools-scm
7, django-configurations
8, pytest-xdist
9, six
10}:
11buildPythonPackage rec {
12 pname = "pytest-django";
13 version = "4.5.2";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "d9076f759bb7c36939dbdd5ae6633c18edfc2902d1a69fdbefd2426b970ce6c2";
18 };
19
20 nativeBuildInputs = [ pytest setuptools-scm ];
21 nativeCheckInputs = [ pytest django-configurations pytest-xdist six ];
22 propagatedBuildInputs = [ django ];
23
24 # Complicated. Requires Django setup.
25 doCheck = false;
26
27 meta = with lib; {
28 description = "py.test plugin for testing of Django applications";
29 homepage = "https://pytest-django.readthedocs.org/en/latest/";
30 license = licenses.bsd3;
31 };
32}