mob next [ci-skip] [ci skip] [skip ci]

lastFile:pkgs/python/py-moneyed/default.nix
This commit is contained in:
2025-10-08 16:27:45 +07:00
parent 4cda4d067a
commit 1e2f44f782
17 changed files with 271 additions and 72 deletions

View File

@@ -1,4 +1,11 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, django_4, pytz,
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
django_4,
pytz,
}:
buildPythonPackage rec {
@@ -13,15 +20,20 @@ buildPythonPackage rec {
hash = "sha256-GD+f9mbImGPQ6MOUK3ftHqiGv7TT39jNQsFvd0dnnWU=";
};
build-system = [ setuptools wheel ];
build-system = [
setuptools
wheel
];
dependencies = [ django_4 pytz ];
dependencies = [
django_4
pytz
];
pythonImportsCheck = [ "dbbackup" ];
meta = {
description =
"Management commands to help backup and restore your project database and media files";
description = "Management commands to help backup and restore your project database and media files";
homepage = "https://github.com/jazzband/django-dbbackup";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ];

View File

@@ -1,4 +1,11 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, django, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
django,
}:
buildPythonPackage rec {
pname = "django-error-report-2";
@@ -12,7 +19,10 @@ buildPythonPackage rec {
hash = "sha256-ZCaslqgruJxM8345/jSlZGruM+27H9hvwL0wtPkUzc0=";
};
build-system = [ setuptools wheel ];
build-system = [
setuptools
wheel
];
dependencies = [ django ];

View File

@@ -1,4 +1,11 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, django, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
django,
}:
buildPythonPackage rec {
pname = "django-flags";
@@ -12,7 +19,10 @@ buildPythonPackage rec {
hash = "sha256-WPMfFYoP6WaVzZmVtqAz4LlY761aCRyPhd5npc8bOOI=";
};
build-system = [ setuptools wheel ];
build-system = [
setuptools
wheel
];
dependencies = [ django ];

View File

@@ -1,5 +1,14 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, wheel
, django, django-recurrence, icalendar, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
wheel,
django,
django-recurrence,
icalendar,
}:
buildPythonPackage rec {
pname = "django-ical";
@@ -13,18 +22,24 @@ buildPythonPackage rec {
hash = "sha256-DUe0loayGcUS7MTyLn+g0KBxbIY7VsaoQNHGSMbMI3U=";
};
build-system = [ setuptools setuptools-scm wheel ];
build-system = [
setuptools
setuptools-scm
wheel
];
dependencies = [ django django-recurrence icalendar ];
dependencies = [
django
django-recurrence
icalendar
];
pythonImportsCheck = [ "django_ical" ];
meta = {
description =
"ICal feeds for Django based on Django's syndication feed framework";
description = "ICal feeds for Django based on Django's syndication feed framework";
homepage = "https://github.com/jazzband/django-ical";
changelog =
"https://github.com/jazzband/django-ical/blob/${src.rev}/CHANGES.rst";
changelog = "https://github.com/jazzband/django-ical/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};

View File

@@ -1,5 +1,12 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, bleach, django, markdown
, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
bleach,
django,
markdown,
}:
buildPythonPackage rec {
pname = "django-markdownify";
@@ -15,7 +22,11 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [ bleach django markdown ];
dependencies = [
bleach
django
markdown
];
pythonImportsCheck = [ "markdownify" ];

View File

@@ -1,5 +1,12 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, django
, py-moneyed, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
django,
py-moneyed,
}:
buildPythonPackage rec {
pname = "django-money";
@@ -13,9 +20,15 @@ buildPythonPackage rec {
hash = "sha256-eL26NsreUqtMJ26TmvmB53EJI4Sjs7qjFDnnt4N0vdI=";
};
build-system = [ setuptools wheel ];
build-system = [
setuptools
wheel
];
dependencies = [ django py-moneyed ];
dependencies = [
django
py-moneyed
];
pythonImportsCheck = [ "djmoney" ];

View File

@@ -1,4 +1,10 @@
{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, setuptools, sentry-sdk,
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
setuptools,
sentry-sdk,
}:
buildPythonPackage rec {
@@ -13,7 +19,10 @@ buildPythonPackage rec {
hash = "sha256-3C7A+X18c7p19HWD/uPRtAMf29VjmrfXXh2z5PPOREY=";
};
build-system = [ poetry-core setuptools ];
build-system = [
poetry-core
setuptools
];
dependencies = [ sentry-sdk ];

View File

@@ -1,6 +1,19 @@
{ lib, buildPythonPackage, fetchFromGitHub, pdm-backend, django, flake8, pytest
, pytest-cov, pytest-django, pytest-sugar, python-dateutil, sphinx
, sphinx-rtd-theme, tox, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
pdm-backend,
django,
flake8,
pytest,
pytest-cov,
pytest-django,
pytest-sugar,
python-dateutil,
sphinx,
sphinx-rtd-theme,
tox,
}:
buildPythonPackage rec {
pname = "django-recurrence";
@@ -36,8 +49,7 @@ buildPythonPackage rec {
meta = {
description = "Utility for working with recurring dates in Django";
homepage = "https://github.com/django-recurrence/django-recurrence";
changelog =
"https://github.com/django-recurrence/django-recurrence/blob/${src.rev}/CHANGES.rst";
changelog = "https://github.com/django-recurrence/django-recurrence/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ];
};

View File

@@ -1,4 +1,11 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, django_4, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
django_4,
}:
buildPythonPackage rec {
pname = "django-slowtests";
@@ -12,7 +19,10 @@ buildPythonPackage rec {
hash = "sha256-gW9AZiMpXJp1m2X1cbm6GdZ9cH+TFqjNLQJFmsvGjB0=";
};
build-system = [ setuptools wheel ];
build-system = [
setuptools
wheel
];
dependencies = [ django_4 ];
@@ -21,8 +31,7 @@ buildPythonPackage rec {
meta = {
description = "Locate your slowest tests";
homepage = "https://github.com/realpython/django-slow-tests";
changelog =
"https://github.com/realpython/django-slow-tests/blob/${src.rev}/CHANGELOG.rst";
changelog = "https://github.com/realpython/django-slow-tests/blob/${src.rev}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};

View File

@@ -1,5 +1,14 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, wheel
, django, pillow, gettext, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
wheel,
django,
pillow,
gettext,
}:
buildPythonPackage rec {
pname = "django-stdimage";
@@ -13,9 +22,16 @@ buildPythonPackage rec {
hash = "sha256-uwVU3Huc5fitAweShJjcMW//GBeIpJcxqKKLGo/EdIs=";
};
build-system = [ setuptools setuptools-scm wheel ];
build-system = [
setuptools
setuptools-scm
wheel
];
dependencies = [ django pillow ];
dependencies = [
django
pillow
];
nativeBuildInputs = [ gettext ];

View File

@@ -1,5 +1,15 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, asgiref, django
, django-ipware, structlog, celery, django-extensions, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
asgiref,
django,
django-ipware,
structlog,
celery,
django-extensions,
}:
buildPythonPackage rec {
pname = "django-structlog";
@@ -15,7 +25,12 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [ asgiref django django-ipware structlog ];
dependencies = [
asgiref
django
django-ipware
structlog
];
optional-dependencies = {
celery = [ celery ];

View File

@@ -1,5 +1,12 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, wheel
, django, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
wheel,
django,
}:
buildPythonPackage rec {
pname = "django-user-sessions";
@@ -13,15 +20,18 @@ buildPythonPackage rec {
hash = "sha256-Wexy6G2pZ8LTnqtJkBZIePV7qhQW8gu/mKiQfZtgf/o=";
};
build-system = [ setuptools setuptools-scm wheel ];
build-system = [
setuptools
setuptools-scm
wheel
];
dependencies = [ django ];
pythonImportsCheck = [ "user_sessions" ];
meta = {
description =
"Extend Django sessions with a foreign key back to the user, allowing enumerating all user's sessions";
description = "Extend Django sessions with a foreign key back to the user, allowing enumerating all user's sessions";
homepage = "http://github.com/jazzband/django-user-sessions";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];

View File

@@ -1,4 +1,11 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, django, weasyprint, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
weasyprint,
}:
buildPythonPackage rec {
pname = "django-weasyprint";
@@ -14,16 +21,17 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [ django weasyprint ];
dependencies = [
django
weasyprint
];
pythonImportsCheck = [ "django_weasyprint" ];
meta = {
description =
"A Django class-based view generating PDF resposes using WeasyPrint";
description = "A Django class-based view generating PDF resposes using WeasyPrint";
homepage = "https://github.com/fdemmer/django-weasyprint";
changelog =
"https://github.com/fdemmer/django-weasyprint/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/fdemmer/django-weasyprint/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
};

View File

@@ -1,4 +1,11 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, django, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
django,
}:
buildPythonPackage rec {
pname = "django-xforwardedfor-middleware";
@@ -12,15 +19,17 @@ buildPythonPackage rec {
hash = "sha256-dDXSb17kXOSeIgY6wid1QFHhUjrapasWgCEb/El51eA=";
};
build-system = [ setuptools wheel ];
build-system = [
setuptools
wheel
];
dependencies = [ django ];
pythonImportsCheck = [ "x_forwarded_for" ];
meta = {
description =
"Use the X-Forwarded-For header to get the real ip of a request";
description = "Use the X-Forwarded-For header to get the real ip of a request";
homepage = "https://github.com/allo-/django-xforwardedfor-middleware";
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ ];

View File

@@ -1,6 +1,25 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, wheel
, prettytable, tomli, autopep8, black, docutils, isort, mypy, pip-tools
, pypandoc, pytest-cov, pytest-pycodestyle, pytest-runner, tomli-w, twine, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
wheel,
prettytable,
tomli,
autopep8,
black,
docutils,
isort,
mypy,
pip-tools,
pypandoc,
pytest-cov,
pytest-pycodestyle,
pytest-runner,
tomli-w,
twine,
}:
buildPythonPackage rec {
pname = "pip-licenses";
@@ -14,9 +33,16 @@ buildPythonPackage rec {
hash = "sha256-6xw6BCuXSzNcwkpHaEFC5UPpubPUwhx/pg6vZq2er7A=";
};
build-system = [ setuptools setuptools-scm wheel ];
build-system = [
setuptools
setuptools-scm
wheel
];
dependencies = [ prettytable tomli ];
dependencies = [
prettytable
tomli
];
optional-dependencies = {
dev = [
@@ -41,8 +67,7 @@ buildPythonPackage rec {
meta = {
description = "Dump the license list of packages installed with pip";
homepage = "https://github.com/raimon49/pip-licenses";
changelog =
"https://github.com/raimon49/pip-licenses/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/raimon49/pip-licenses/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};

View File

@@ -1,5 +1,12 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, wheel, babel
, typing-extensions, }:
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
babel,
typing-extensions,
}:
buildPythonPackage rec {
pname = "py-moneyed";
@@ -13,18 +20,22 @@ buildPythonPackage rec {
hash = "sha256-k0ZbLwog6TYxKDLZV7eH1Br8buMPfpOkgp+pMN/qdB8=";
};
build-system = [ setuptools wheel ];
build-system = [
setuptools
wheel
];
dependencies = [ babel typing-extensions ];
dependencies = [
babel
typing-extensions
];
pythonImportsCheck = [ "moneyed" ];
meta = {
description =
"Provides Currency and Money classes for use in your Python code";
description = "Provides Currency and Money classes for use in your Python code";
homepage = "http://github.com/py-moneyed/py-moneyed";
changelog =
"https://github.com/py-moneyed/py-moneyed/blob/${src.rev}/CHANGES.rst";
changelog = "https://github.com/py-moneyed/py-moneyed/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ];
};