mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
parent
cb4734193d
commit
ab710f653d
@ -1,43 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, flit-core
|
||||
, django
|
||||
, djangorestframework, python, mock
|
||||
, djangorestframework
|
||||
, pytestCheckHook
|
||||
, pytest-django
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-filter";
|
||||
version = "23.2";
|
||||
version = "23.3";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-L+FfeBCEde2lJWkoEyBfpvnowcrxrmXapYYtQDxtvwA=";
|
||||
hash = "sha256-AV/hVVguGAW0Bik0Tkps88xARQgn0pTQQLS4wXSan6Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
|
||||
propagatedBuildInputs = [ django ];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"django_filters"
|
||||
];
|
||||
|
||||
# Tests fail (needs the 'crispy_forms' module not packaged on nixos)
|
||||
doCheck = false;
|
||||
|
||||
nativeCheckInputs = [
|
||||
djangorestframework
|
||||
django
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-django
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} runtests.py tests
|
||||
runHook postCheck
|
||||
'';
|
||||
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Reusable Django application for allowing users to filter querysets dynamically";
|
||||
homepage = "https://pypi.org/project/django-filter/";
|
||||
homepage = "https://github.com/carltongibson/django-filter";
|
||||
changelog = "https://github.com/carltongibson/django-filter/blob/v${version}/CHANGES.rst";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ mmai ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user