mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
48deda9f36
Do the files change over time..?
34 lines
921 B
Nix
34 lines
921 B
Nix
{ stdenv, buildPythonPackage, fetchurl
|
|
, pytest, django, setuptools_scm
|
|
, fetchpatch
|
|
}:
|
|
buildPythonPackage rec {
|
|
name = "pytest-django-${version}";
|
|
version = "3.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/p/pytest-django/${name}.tar.gz";
|
|
sha256 = "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303";
|
|
};
|
|
|
|
buildInputs = [ pytest setuptools_scm ];
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
patches = [
|
|
# Unpin setuptools-scm
|
|
(fetchpatch {
|
|
url = "https://github.com/pytest-dev/pytest-django/commit/25cbc3b395dcdeb92bdc9414e296680c2b9d602e.patch";
|
|
sha256 = "0mz3rcsv44pfzlxy3pv8mx87glmv34gy0d5aknvbzgb2a9niryws";
|
|
})
|
|
];
|
|
|
|
# Complicated. Requires Django setup.
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "py.test plugin for testing of Django applications";
|
|
homepage = http://pytest-django.readthedocs.org/en/latest/;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|