Skip to content

Commit

Permalink
python3Packages.django-upgrade: init at 1.22.2 (NixOS#358407)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Jan 9, 2025
2 parents 989560e + 5bce789 commit c30dc6d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/by-name/dj/django-upgrade/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
fetchFromGitHub,
python3Packages,
versionCheckHook,
}:

python3Packages.buildPythonApplication rec {
pname = "django-upgrade";
version = "1.22.2";
pyproject = true;

src = fetchFromGitHub {
owner = "adamchainz";
repo = "django-upgrade";
tag = version;
hash = "sha256-QhowVqvN1kODKFLp2uA9CXLWqNJl1p5kC5z4rjRqKNk=";
};

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}/CHANGELOG.rst";
mainProgram = "django-upgrade";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.kalekseev ];
};
}

0 comments on commit c30dc6d

Please sign in to comment.