From 38334be6a955bc9d8908543b608d43257d48e89e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 10 Jan 2023 14:15:25 +0100 Subject: [PATCH] python310Packages.django-vite: add changelog to meta --- .../python-modules/django-vite/default.nix | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/django-vite/default.nix b/pkgs/development/python-modules/django-vite/default.nix index 551eaf640d6e..9a8a7c5e4617 100644 --- a/pkgs/development/python-modules/django-vite/default.nix +++ b/pkgs/development/python-modules/django-vite/default.nix @@ -1,26 +1,39 @@ -{ lib, fetchFromGitHub, buildPythonPackage, django }: +{ lib +, fetchFromGitHub +, buildPythonPackage +, django +, pythonOlder +}: buildPythonPackage rec { pname = "django-vite"; version = "2.0.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "MrBin99"; repo = pname; - rev = version; - sha256 = "sha256-lYRFNHTIQBn7CDnWFxSzXELzqEtQcbwHedSZnR7ZtbE="; + rev = "refs/tags/v${version}"; + hash = "sha256-lYRFNHTIQBn7CDnWFxSzXELzqEtQcbwHedSZnR7ZtbE="; }; - propagatedBuildInputs = [ django ]; + propagatedBuildInputs = [ + django + ]; # Package doesn’t have any tests doCheck = false; - pythonImportsCheck = [ "django_vite" ]; + pythonImportsCheck = [ + "django_vite" + ]; meta = with lib; { - description = " Integration of ViteJS in a Django project."; + description = "Integration of ViteJS in a Django project"; homepage = "https://github.com/MrBin99/django-vite"; + changelog = "https://github.com/MrBin99/django-vite/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ sephi ]; };