python3Packages.django-extensions: 3.1.3 -> 3.1.5
This commit is contained in:
parent
c0b9a9ee44
commit
9baa45ff0d
@ -1,59 +1,54 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, django
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, django
|
||||
, factory_boy
|
||||
, glibcLocales
|
||||
, mock
|
||||
, pygments
|
||||
, pytest
|
||||
, pytest-cov
|
||||
, pytest-django
|
||||
, python-dateutil
|
||||
, pytestCheckHook
|
||||
, shortuuid
|
||||
, six
|
||||
, tox
|
||||
, typing ? null
|
||||
, vobject
|
||||
, werkzeug
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-extensions";
|
||||
version = "3.1.3";
|
||||
version = "3.1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "03mhikhh49z8bxajbjf1j790b9c9vl4zf4f86iwz7g0zrd7jqlvm";
|
||||
sha256 = "sha256-NAMa78KhAuoJfp0Cb0Codz84sRfRQ1JhSLNYRI4GBPM=";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=django_extensions --cov-report html --cov-report term" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
propagatedBuildInputs = [ six ]
|
||||
++ lib.optional (pythonOlder "3.5") typing;
|
||||
|
||||
checkInputs = [
|
||||
django
|
||||
factory_boy
|
||||
glibcLocales
|
||||
mock
|
||||
pygments # not explicitly declared in setup.py, but some tests require it
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-django
|
||||
python-dateutil
|
||||
pytestCheckHook
|
||||
shortuuid
|
||||
tox
|
||||
vobject
|
||||
werkzeug
|
||||
];
|
||||
|
||||
# remove tests that need network access
|
||||
checkPhase = ''
|
||||
rm tests/management/commands/test_pipchecker.py
|
||||
DJANGO_SETTINGS_MODULE=tests.testapp.settings \
|
||||
pytest django_extensions tests
|
||||
'';
|
||||
disabledTestPaths = [
|
||||
# requires network access
|
||||
"tests/management/commands/test_pipchecker.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A collection of custom extensions for the Django Framework";
|
||||
|
Loading…
Reference in New Issue
Block a user