From 663fa914f6b7b937d2bf832948d630c3fa359610 Mon Sep 17 00:00:00 2001 From: Sylvain Fankhauser Date: Thu, 22 Dec 2022 15:36:37 +0100 Subject: [PATCH] python3Packages.django-vite: init at 2.0.2 --- .../python-modules/django-vite/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/django-vite/default.nix diff --git a/pkgs/development/python-modules/django-vite/default.nix b/pkgs/development/python-modules/django-vite/default.nix new file mode 100644 index 000000000000..551eaf640d6e --- /dev/null +++ b/pkgs/development/python-modules/django-vite/default.nix @@ -0,0 +1,27 @@ +{ lib, fetchFromGitHub, buildPythonPackage, django }: + +buildPythonPackage rec { + pname = "django-vite"; + version = "2.0.2"; + + src = fetchFromGitHub { + owner = "MrBin99"; + repo = pname; + rev = version; + sha256 = "sha256-lYRFNHTIQBn7CDnWFxSzXELzqEtQcbwHedSZnR7ZtbE="; + }; + + propagatedBuildInputs = [ django ]; + + # Package doesn’t have any tests + doCheck = false; + + pythonImportsCheck = [ "django_vite" ]; + + meta = with lib; { + description = " Integration of ViteJS in a Django project."; + homepage = "https://github.com/MrBin99/django-vite"; + license = licenses.asl20; + maintainers = with maintainers; [ sephi ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 63c854e268d7..cba43113dc2f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2652,6 +2652,8 @@ self: super: with self; { django-versatileimagefield = callPackage ../development/python-modules/django-versatileimagefield { }; + django-vite = callPackage ../development/python-modules/django-vite { }; + django-webpack-loader = callPackage ../development/python-modules/django-webpack-loader { }; django-widget-tweaks = callPackage ../development/python-modules/django-widget-tweaks { };