Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 740 B view raw
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.1.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "26f02c16d36fd4c8672390deebe3413678d89f30720c16efb8b2a6bf63b9041f"; 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 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}