python3Packages: migrate my packages to finalAttrs (#477139)

This commit is contained in:
Bruno BELANYI
2026-01-05 17:09:47 +00:00
committed by GitHub
26 changed files with 94 additions and 94 deletions
@@ -12,7 +12,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "aiobtclientapi";
version = "1.1.4";
pyproject = true;
@@ -21,7 +21,7 @@ buildPythonPackage rec {
domain = "codeberg.org";
owner = "plotski";
repo = "aiobtclientapi";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-ga3EyKhfdEKkjFktUlgLSX54QbTc/a48vmWjmRqa+4w=";
};
@@ -64,4 +64,4 @@ buildPythonPackage rec {
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -15,7 +15,7 @@
fetchpatch,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "aiobtclientrpc";
version = "5.0.1";
pyproject = true;
@@ -24,7 +24,7 @@ buildPythonPackage rec {
domain = "codeberg.org";
owner = "plotski";
repo = "aiobtclientrpc";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-2nBrIMlYUI4PwirkiSJSkw5zw2Kc/KoVRyIIYYx4iYs=";
};
@@ -80,4 +80,4 @@ buildPythonPackage rec {
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -9,7 +9,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "beancount-black";
version = "1.0.5";
@@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "LaunchPlatform";
repo = "beancount-black";
tag = version;
tag = finalAttrs.version;
hash = "sha256-vo11mlgDhyc8YFnULJ4AFrANWmGpAMNX5jJ6QaUNqk0=";
};
@@ -41,4 +41,4 @@ buildPythonPackage rec {
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -8,7 +8,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "beancount-parser";
version = "1.2.3";
format = "pyproject";
@@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "LaunchPlatform";
repo = "beancount-parser";
tag = version;
tag = finalAttrs.version;
hash = "sha256-8YcrsLdSRTixKXU/IM821kNcBo0jB/8DXA1/KiedsBY=";
};
@@ -33,8 +33,8 @@ buildPythonPackage rec {
meta = {
description = "Standalone Lark based Beancount syntax parser";
homepage = "https://github.com/LaunchPlatform/beancount-parser/";
changelog = "https://github.com/LaunchPlatform/beancount-parser/releases/tag/${version}";
changelog = "https://github.com/LaunchPlatform/beancount-parser/releases/tag/${finalAttrs.version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -5,13 +5,13 @@
bleach,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "bleach-allowlist";
version = "1.0.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-VuIghgeaDmoxAK6Z5NuvIOslhUhlmOsOmUAIoRQo2ps=";
};
@@ -28,4 +28,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -7,7 +7,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "countryguess";
version = "0.4.9";
pyproject = true;
@@ -16,7 +16,7 @@ buildPythonPackage rec {
domain = "codeberg.org";
owner = "plotski";
repo = "countryguess";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-RlOOao6aU3MylghDyOeg3poYQw+0UhljN79/ZBLjq24=";
};
@@ -37,4 +37,4 @@ buildPythonPackage rec {
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -9,7 +9,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "django-annoying";
version = "0.10.8";
pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "skorokithakis";
repo = "django-annoying";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-zBOHVar4iKb+BioIwmDosNZKi/0YcjYfBusn0Lv8pMw=";
};
@@ -38,8 +38,8 @@ buildPythonPackage rec {
meta = {
description = "Django application that tries to eliminate annoying things in the Django framework";
homepage = "https://skorokithakis.github.io/django-annoying/";
changelog = "https://github.com/skorokithakis/django-annoying/releases/tag/v$version";
changelog = "https://github.com/skorokithakis/django-annoying/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -9,7 +9,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "django-autocomplete-light";
version = "3.12.1";
pyproject = true;
@@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "yourlabs";
repo = "django-autocomplete-light";
tag = version;
tag = finalAttrs.version;
hash = "sha256-ctNbbmTUgrkLGCo7tgPIJpLn7RmkZSuj54/5RBe/sdA=";
};
@@ -42,8 +42,8 @@ buildPythonPackage rec {
meta = {
description = "Fresh approach to autocomplete implementations, specially for Django";
homepage = "https://django-autocomplete-light.readthedocs.io";
changelog = "https://github.com/yourlabs/django-autocomplete-light/blob/${version}/CHANGELOG";
changelog = "https://github.com/yourlabs/django-autocomplete-light/blob/${finalAttrs.version}/CHANGELOG";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -8,7 +8,7 @@
pytest-django,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "django-crispy-forms";
version = "2.5";
format = "pyproject";
@@ -16,7 +16,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "django-crispy-forms";
repo = "django-crispy-forms";
tag = version;
tag = finalAttrs.version;
hash = "sha256-UZw860dOmQOAHcOPn5JO5OPe0kei4Mivy5FTh25Zo1s=";
};
@@ -49,4 +49,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -5,13 +5,13 @@
django,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "django-hcaptcha";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
inherit version;
inherit (finalAttrs) version;
pname = "django-hCaptcha";
hash = "sha256-slGerwzJeGWscvglMBEixc9h4eSFLWiVmUFgIirLbBo=";
};
@@ -29,4 +29,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -10,7 +10,7 @@
six,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "django-js-reverse";
version = "0.10.2";
pyproject = true;
@@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "vintasoftware";
repo = "django-js-reverse";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-0S1g8tLWaJVV2QGPeiBOevhz9f0ueINxA9HOcnXuyYg=";
};
@@ -46,8 +46,8 @@ buildPythonPackage rec {
meta = {
description = "Javascript URL handling for Django";
homepage = "https://django-js-reverse.readthedocs.io/";
changelog = "https://github.com/vintasoftware/django-js-reverse/releases/tag/${src.tag}";
changelog = "https://github.com/vintasoftware/django-js-reverse/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -7,7 +7,7 @@
pytest-django,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "django-scopes";
version = "2.0.0";
format = "setuptools";
@@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "raphaelm";
repo = "django-scopes";
tag = version;
tag = finalAttrs.version;
hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM=";
};
@@ -28,10 +28,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "django_scopes" ];
meta = {
meta = with lib; {
description = "Safely separate multiple tenants in a Django database";
homepage = "https://github.com/raphaelm/django-scopes";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ambroisie ];
license = licenses.asl20;
maintainers = with maintainers; [ ambroisie ];
};
}
})
@@ -8,7 +8,7 @@
pytest-django,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "drf-writable-nested";
version = "0.7.2";
format = "setuptools";
@@ -16,7 +16,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "beda-software";
repo = "drf-writable-nested";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-VkQ3Di3vXxQAmvuMP8KpGVVdx7LMYcQFEF4ZsuA9KeA=";
};
@@ -36,4 +36,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -16,7 +16,7 @@
w3lib,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "extruct";
version = "0.18.0";
pyproject = true;
@@ -26,7 +26,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "scrapinghub";
repo = "extruct";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-hUSlIlWxrsxGLCE8/DAGSqxx9+7TEkynmXrVnXGjDQ8=";
};
@@ -60,8 +60,8 @@ buildPythonPackage rec {
description = "Extract embedded metadata from HTML markup";
mainProgram = "extruct";
homepage = "https://github.com/scrapinghub/extruct";
changelog = "https://github.com/scrapinghub/extruct/blob/v${version}/HISTORY.rst";
changelog = "https://github.com/scrapinghub/extruct/blob/v${finalAttrs.version}/HISTORY.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -7,7 +7,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "flatbencode";
version = "0.2.1";
pyproject = true;
@@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "acatton";
repo = "flatbencode";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-1/4w41E8IKygJTBcQOexiDytV6BvVBwIjajKz2uCfu8=";
};
@@ -36,4 +36,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -9,7 +9,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "html-text";
version = "0.6.2";
pyproject = true;
@@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "zytedata";
repo = "html-text";
tag = version;
tag = finalAttrs.version;
hash = "sha256-e9gkibQv8mn1Jbt77UmpauOeTqhJQhY9R5Sge/iYi+U=";
};
@@ -37,8 +37,8 @@ buildPythonPackage rec {
meta = {
description = "Extract text from HTML";
homepage = "https://github.com/zytedata/html-text";
changelog = "https://github.com/zytedata/html-text/blob/${version}/CHANGES.rst";
changelog = "https://github.com/zytedata/html-text/blob/${finalAttrs.version}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -5,7 +5,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "language-tags";
version = "1.2.0";
format = "setuptools";
@@ -13,7 +13,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "OnroerendErfgoed";
repo = "language-tags";
tag = version;
tag = finalAttrs.version;
hash = "sha256-T9K290seKhQLqW36EfA9kn3WveKCmyjN4Mx2j50qIEk=";
};
@@ -21,10 +21,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "language_tags" ];
meta = {
meta = with lib; {
description = "Dealing with IANA language tags in Python";
homepage = "https://language-tags.readthedocs.io/en/latest/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
license = licenses.mit;
maintainers = with maintainers; [ ambroisie ];
};
}
})
@@ -12,7 +12,7 @@
requests,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "mf2py";
version = "2.0.1";
pyproject = true;
@@ -22,7 +22,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "microformats";
repo = "mf2py";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-mhJ+s1rtXEJ6DqVmiyWNEK+3cdDLpR63Q4QGmD9wVio=";
};
@@ -45,8 +45,8 @@ buildPythonPackage rec {
meta = {
description = "Microformats2 parser written in Python";
homepage = "https://microformats.org/wiki/mf2py";
changelog = "https://github.com/microformats/mf2py/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/microformats/mf2py/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -6,7 +6,7 @@
unittestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "microdata";
version = "0.8.0";
format = "setuptools";
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "edsu";
repo = "microdata";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-BAygCLBLxZ033ZWRFSR52dSM2nPY8jXplDXQ8WW3KPo=";
};
@@ -31,4 +31,4 @@ buildPythonPackage rec {
license = lib.licenses.cc0;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -11,7 +11,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pyimgbox";
version = "1.0.7";
pyproject = true;
@@ -20,7 +20,7 @@ buildPythonPackage rec {
domain = "codeberg.org";
owner = "plotski";
repo = "pyimgbox";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-HYKi5nYXJ+5ytQEFVMMm1HxEsD1zMU7cE2mOdwuZxvk=";
};
@@ -48,4 +48,4 @@ buildPythonPackage rec {
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -5,7 +5,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pyparsebluray";
version = "0.1.4";
pyproject = true;
@@ -13,7 +13,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Ichunjo";
repo = "pyparsebluray";
tag = version;
tag = finalAttrs.version;
hash = "sha256-9G+pf4kZnj5ZkJj8qmymqdxCRVUTfGy3m9iF5BjiCxM=";
};
@@ -27,4 +27,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -7,14 +7,14 @@
tqdm,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pypdf3";
version = "1.0.6";
format = "setuptools";
src = fetchPypi {
pname = "PyPDF3";
inherit version;
inherit (finalAttrs) version;
hash = "sha256-yUbzJzQZ43JY415yJz9JkEqxVyPYenYcERXvmXmfjF8=";
};
@@ -33,4 +33,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -9,7 +9,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pyrdfa3";
version = "3.6.4";
pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-ZHEtGkvyGCllKzlxW62m58A7zxnLSfliwZCjj0YXIkM=";
};
@@ -37,8 +37,8 @@ buildPythonPackage rec {
meta = {
description = "RDFa 1.1 distiller/parser library";
homepage = "https://github.com/prrvchr/pyrdfa3/";
changelog = "https://github.com/prrvchr/pyrdfa3/releases/tag/v${version}";
changelog = "https://github.com/prrvchr/pyrdfa3/releases/tag/v${finalAttrs.version}";
license = lib.licenses.w3c;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -15,7 +15,7 @@
nixosTests,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "recipe-scrapers";
version = "15.11.0";
pyproject = true;
@@ -25,7 +25,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "hhursev";
repo = "recipe-scrapers";
tag = version;
tag = finalAttrs.version;
hash = "sha256-S0/RPVeEr/lAPJZSUwCippuXyirYnmaAuesWGYwg6kE=";
};
@@ -64,8 +64,8 @@ buildPythonPackage rec {
meta = {
description = "Python package for scraping recipes data";
homepage = "https://github.com/hhursev/recipe-scrapers";
changelog = "https://github.com/hhursev/recipe-scrapers/releases/tag/${src.tag}";
changelog = "https://github.com/hhursev/recipe-scrapers/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -6,7 +6,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "reflink-copy";
version = "0.3.3";
pyproject = true;
@@ -14,12 +14,12 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "iterative";
repo = "reflink-copy";
tag = version;
tag = finalAttrs.version;
hash = "sha256-HxUAsqV5kjstfBfY/nEGJ3epUVT5WXoTqKerUggKDyo=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
inherit (finalAttrs) pname version src;
hash = "sha256-TBKVf0kRRYn+1aYvhQHCHmJEsT0khFxp8iuyEWX9xyI=";
};
@@ -38,4 +38,4 @@ buildPythonPackage rec {
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
@@ -17,7 +17,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "torf";
version = "4.3.0";
pyproject = true;
@@ -25,7 +25,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "rndusr";
repo = "torf";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-vJapB4Tbn3tLLUIH9LemU9kTqG7TsByiotkWM52lsno=";
};
@@ -67,4 +67,4 @@ buildPythonPackage rec {
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})