My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/django-extensions/default.nix

58 lines
1.1 KiB

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, factory_boy
, mock
, pygments
, pytest-django
, pytestCheckHook
, shortuuid
, vobject
, werkzeug
}:
buildPythonPackage rec {
pname = "django-extensions";
version = "3.1.5";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-NAMa78KhAuoJfp0Cb0Codz84sRfRQ1JhSLNYRI4GBPM=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=django_extensions --cov-report html --cov-report term" ""
'';
propagatedBuildInputs = [
django
];
__darwinAllowLocalNetworking = true;
checkInputs = [
factory_boy
mock
pygments # not explicitly declared in setup.py, but some tests require it
pytest-django
pytestCheckHook
shortuuid
vobject
werkzeug
];
disabledTestPaths = [
# requires network access
"tests/management/commands/test_pipchecker.py"
];
meta = with lib; {
description = "A collection of custom extensions for the Django Framework";
homepage = "https://github.com/django-extensions/django-extensions";
license = licenses.mit;
};
}