mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
33 lines
746 B
Nix
33 lines
746 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, django
|
|
, setuptools-scm
|
|
, django-configurations
|
|
, pytest-xdist
|
|
, six
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "pytest-django";
|
|
version = "4.5.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d9076f759bb7c36939dbdd5ae6633c18edfc2902d1a69fdbefd2426b970ce6c2";
|
|
};
|
|
|
|
nativeBuildInputs = [ pytest setuptools-scm ];
|
|
nativeCheckInputs = [ pytest django-configurations pytest-xdist six ];
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
# Complicated. Requires Django setup.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "py.test plugin for testing of Django applications";
|
|
homepage = "https://pytest-django.readthedocs.org/en/latest/";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|