Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
995 B
Nix
42 lines
995 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "django-upgrade";
|
|
version = "1.28.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adamchainz";
|
|
repo = "django-upgrade";
|
|
tag = version;
|
|
hash = "sha256-GX8qIpkXD/XTxj5fp46xG+ZVEDnkuOeBJm4tS9uXC6Q=";
|
|
};
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
dependencies = [ python3Packages.tokenize-rt ];
|
|
|
|
nativeCheckInputs = [
|
|
python3Packages.pytestCheckHook
|
|
versionCheckHook
|
|
];
|
|
|
|
versionCheckProgramArg = "--version";
|
|
|
|
pythonImportsCheck = [ "django_upgrade" ];
|
|
|
|
meta = {
|
|
description = "Automatically upgrade your Django projects";
|
|
homepage = "https://github.com/adamchainz/django-upgrade";
|
|
changelog = "https://github.com/adamchainz/django-upgrade/blob/${version}/docs/changelog.rst";
|
|
mainProgram = "django-upgrade";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.kalekseev ];
|
|
};
|
|
}
|