nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
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 = "3.4.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "3d489db7c9bd18d7c154347b1bdfb82cc6b1ec8539543508b199c77e5eb2caec";
18 };
19
20 nativeBuildInputs = [ pytest setuptools_scm ];
21 checkInputs = [ pytest django-configurations pytest_xdist six ];
22 propagatedBuildInputs = [ django ];
23
24 # Complicated. Requires Django setup.
25 doCheck = false;
26
27 meta = with stdenv.lib; {
28 description = "py.test plugin for testing of Django applications";
29 homepage = http://pytest-django.readthedocs.org/en/latest/;
30 license = licenses.bsd3;
31 };
32}