Merge pull request #226462 from mweinelt/django-deps
Various django packages
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, django
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-bootstrap3";
|
||||
version = "23.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-cJW3xmqJ87rreOoCh5nr15XSlzn8hgJGBCLnwqGUrTA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bootstrap3"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
env.DJANGO_SETTINGS_MODULE = "tests.app.settings";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bootstrap 3 integration for Django";
|
||||
homepage = "https://github.com/zostera/django-bootstrap3";
|
||||
changelog = "https://github.com/zostera/django-bootstrap3/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build
|
||||
, setuptools
|
||||
|
||||
# propagates
|
||||
, asgiref
|
||||
, typing-extensions
|
||||
|
||||
# tests
|
||||
, django
|
||||
, djangorestframework
|
||||
, graphene-django
|
||||
, pytestCheckHook
|
||||
, pytest-django
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-countries";
|
||||
version = "7.5.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SmileyChris";
|
||||
repo = "django-countries";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-se6s0sgIfMLW0sIMp/3vK4KdDPQ5ahg6OQCDAs4my4M=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
asgiref
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
django
|
||||
djangorestframework
|
||||
graphene-django
|
||||
pytestCheckHook
|
||||
pytest-django
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Provides a country field for Django models";
|
||||
longDescription = ''
|
||||
A Django application that provides country choices for use with
|
||||
forms, flag icons static files, and a country field for models.
|
||||
'';
|
||||
homepage = "https://github.com/SmileyChris/django-countries";
|
||||
changelog = "https://github.com/SmileyChris/django-countries/blob/v${version}/CHANGES.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, django
|
||||
, django-jquery-js
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-formset-js-improved";
|
||||
version = "0.5.0.3";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pretix";
|
||||
repo = "django-formset-js";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-bOM24ldXk9WeV0jl6LIJB3BJ5hVWLA1PJTBBnJBoprU=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django-jquery-js
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"djangoformsetjs"
|
||||
];
|
||||
|
||||
doCheck = false; # no tests
|
||||
|
||||
meta = with lib; {
|
||||
description = "A wrapper for a JavaScript formset helper";
|
||||
homepage = "https://github.com/pretix/django-formset-js";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# propagates
|
||||
, python-dateutil
|
||||
|
||||
# tests
|
||||
, django-extensions
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-hierarkey";
|
||||
version = "1.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raphaelm";
|
||||
repo = "django-hierarkey";
|
||||
# https://github.com/raphaelm/django-hierarkey/commit/c81ace02ca404a8756e2931bb6faf55b6365e140
|
||||
rev = "c81ace02ca404a8756e2931bb6faf55b6365e140";
|
||||
hash = "sha256-sCARyTjuuAUptlOsFmApnsQpcksP+uYnq0lukXDMcuk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-dateutil
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"hierarkey"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
django-extensions
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flexible and powerful hierarchical key-value store for your Django models";
|
||||
homepage = "https://github.com/raphaelm/django-hierarkey";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromBitbucket
|
||||
, django
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-jquery-js";
|
||||
version = "3.1.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromBitbucket {
|
||||
owner = "tim_heap";
|
||||
repo = "django-jquery";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-TzMo31jFhcvlrmq2TJgQyds9n8eATaChnyhnQ7bwdzs=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jquery"
|
||||
];
|
||||
|
||||
doCheck = false; # no tests
|
||||
|
||||
meta = with lib; {
|
||||
description = "jQuery, bundled up so apps can depend upon it";
|
||||
homepage = "https://bitbucket.org/tim_heap/django-jquery";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, django
|
||||
|
||||
# optionals
|
||||
, bleach
|
||||
, docutils
|
||||
, markdown
|
||||
, pygments
|
||||
, python-creole
|
||||
, smartypants
|
||||
, textile
|
||||
|
||||
# tests
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-markup";
|
||||
version = "1.6";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bartTC";
|
||||
repo = "django-markup";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-Hh+3KxFE6sSIqRowyZ1Pz6NmBaTbltZaEhSjFrw760Q=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
all_filter_dependencies = [
|
||||
bleach
|
||||
docutils
|
||||
markdown
|
||||
pygments
|
||||
python-creole
|
||||
smartypants
|
||||
textile
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"django_markup"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.all_filter_dependencies;
|
||||
|
||||
env.DJANGO_SETTINGS_MODULE = "django_markup.tests";
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/bartTC/django-markup/issues/40
|
||||
"test_rst_with_pygments"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generic Django application to convert text with specific markup to html.";
|
||||
homepage = "https://github.com/bartTC/django-markup";
|
||||
changelog = "https://github.com/bartTC/django-markup/blob/v${version}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, runtimeShell
|
||||
|
||||
# build
|
||||
, poetry-core
|
||||
|
||||
# propagates
|
||||
, docutils
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, readme_renderer
|
||||
, textile
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-creole";
|
||||
version = "1.4.10";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jedie";
|
||||
repo = "python-creole";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-8pXOnLNjhIv0d+BqjW8wlb6BT6CmFHSsxn5wLOv3LBQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "poetry.masonry.api" "poetry.core.masonry.api"
|
||||
|
||||
substituteInPlace Makefile \
|
||||
--replace "/bin/bash" "${runtimeShell}"
|
||||
|
||||
sed -i "/-cov/d" pytest.ini
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
docutils
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"creole"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
readme_renderer
|
||||
textile
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# macro didn't expect argument
|
||||
"test_macro_wrong_arguments_quite"
|
||||
"test_macro_wrong_arguments_with_error_report"
|
||||
# rendering mismatches, likely docutils version mismatch
|
||||
"test_headlines1"
|
||||
"test_simple_table"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires poetry
|
||||
"creole/tests/test_Makefile.py"
|
||||
# requires poetry_publish
|
||||
"creole/publish.py"
|
||||
"creole/tests/test_project_setup.py"
|
||||
# rendering differencenes, likely docutils version mismatch
|
||||
"creole/tests/test_cross_compare_rest.py"
|
||||
"creole/tests/test_rest2html.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Creole markup tools written in Python";
|
||||
homepage = "https://github.com/jedie/python-creole";
|
||||
changelog = "https://github.com/jedie/python-creole/releases/tag/v${version}";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
@@ -2576,6 +2576,8 @@ self: super: with self; {
|
||||
|
||||
django-autocomplete-light = callPackage ../development/python-modules/django-autocomplete-light { };
|
||||
|
||||
django-bootstrap3 = callPackage ../development/python-modules/django-bootstrap3 { };
|
||||
|
||||
django-cache-url = callPackage ../development/python-modules/django-cache-url { };
|
||||
|
||||
django-cacheops = callPackage ../development/python-modules/django-cacheops { };
|
||||
@@ -2606,6 +2608,8 @@ self: super: with self; {
|
||||
|
||||
django-cors-headers = callPackage ../development/python-modules/django-cors-headers { };
|
||||
|
||||
django-countries = callPackage ../development/python-modules/django-countries { };
|
||||
|
||||
django-crispy-forms = callPackage ../development/python-modules/django-crispy-forms { };
|
||||
|
||||
django-cryptography = callPackage ../development/python-modules/django-cryptography { };
|
||||
@@ -2626,6 +2630,8 @@ self: super: with self; {
|
||||
|
||||
django-formtools = callPackage ../development/python-modules/django-formtools { };
|
||||
|
||||
django-formset-js-improved = callPackage ../development/python-modules/django-formset-js-improved { };
|
||||
|
||||
django-graphiql-debug-toolbar = callPackage ../development/python-modules/django-graphiql-debug-toolbar { };
|
||||
|
||||
django-gravatar2 = callPackage ../development/python-modules/django-gravatar2 { };
|
||||
@@ -2638,6 +2644,8 @@ self: super: with self; {
|
||||
|
||||
django-health-check = callPackage ../development/python-modules/django-health-check { };
|
||||
|
||||
django-hierarkey = callPackage ../development/python-modules/django-hierarkey { };
|
||||
|
||||
django_hijack_admin = callPackage ../development/python-modules/django-hijack-admin { };
|
||||
|
||||
django_hijack = callPackage ../development/python-modules/django-hijack { };
|
||||
@@ -2649,6 +2657,8 @@ self: super: with self; {
|
||||
|
||||
django-jinja = callPackage ../development/python-modules/django-jinja2 { };
|
||||
|
||||
django-jquery-js = callPackage ../development/python-modules/django-jquery-js { };
|
||||
|
||||
django-js-asset = callPackage ../development/python-modules/django-js-asset { };
|
||||
|
||||
django-js-reverse = callPackage ../development/python-modules/django-js-reverse { };
|
||||
@@ -2659,6 +2669,8 @@ self: super: with self; {
|
||||
|
||||
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
|
||||
|
||||
django-markup = callPackage ../development/python-modules/django-markup { };
|
||||
|
||||
django-model-utils = callPackage ../development/python-modules/django-model-utils { };
|
||||
|
||||
django-modelcluster = callPackage ../development/python-modules/django_modelcluster { };
|
||||
@@ -7494,6 +7506,8 @@ self: super: with self; {
|
||||
|
||||
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
|
||||
|
||||
python-creole = callPackage ../development/python-modules/python-creole { };
|
||||
|
||||
python-crfsuite = callPackage ../development/python-modules/python-crfsuite { };
|
||||
|
||||
python-csxcad = callPackage ../development/python-modules/python-csxcad { };
|
||||
|
||||
Reference in New Issue
Block a user