2017-09-01 09:55:19 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-01-21 21:50:13 +01:00
|
|
|
, pytest, django, setuptools_scm
|
2017-03-16 12:39:43 +01:00
|
|
|
, fetchpatch
|
2017-01-21 21:50:13 +01:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "pytest-django";
|
2017-01-21 21:50:13 +01:00
|
|
|
version = "3.1.2";
|
|
|
|
|
2017-09-01 09:55:19 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-01-21 21:50:13 +01:00
|
|
|
sha256 = "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2017-03-16 12:39:43 +01:00
|
|
|
patches = [
|
|
|
|
# Unpin setuptools-scm
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/pytest-dev/pytest-django/commit/25cbc3b395dcdeb92bdc9414e296680c2b9d602e.patch";
|
2017-09-01 09:55:19 +02:00
|
|
|
sha256 = "0mz3rcsv44pfzlxy3pv8mx87glmv34gy0d5aknvbzgb2a9niryws";
|
2017-03-16 12:39:43 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
# Complicated. Requires Django setup.
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-01-21 21:50:13 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "py.test plugin for testing of Django applications";
|
|
|
|
homepage = http://pytest-django.readthedocs.org/en/latest/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|