depot/third_party/nixpkgs/pkgs/development/python-modules/django-vite/default.nix

38 lines
828 B
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
buildPythonPackage,
django,
pythonOlder,
}:
buildPythonPackage rec {
pname = "django-vite";
version = "3.0.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MrBin99";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-v6jmtiQjTJegD7aeuu3HkuKnYWgMZ7TqW5onkSnc7Xs=";
};
propagatedBuildInputs = [ django ];
# Package doesnt 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";
changelog = "https://github.com/MrBin99/django-vite/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ sephi ];
};
}