Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.9.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "664e5f42242e5e182519388f01b9f25d824a9feb7cd17d8f863c8d776f38baf9"; 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 = "https://pytest-django.readthedocs.org/en/latest/"; 30 license = licenses.bsd3; 31 }; 32}