e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
40 lines
833 B
Nix
40 lines
833 B
Nix
{ lib
|
||
, fetchFromGitHub
|
||
, buildPythonPackage
|
||
, django
|
||
, pythonOlder
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "django-vite";
|
||
version = "3.0.1";
|
||
format = "setuptools";
|
||
|
||
disabled = pythonOlder "3.7";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "MrBin99";
|
||
repo = pname;
|
||
rev = "refs/tags/${version}";
|
||
hash = "sha256-S7n14nv6DZgusntVXh65PM/oaYZGCxaFylPbVXxmLj4=";
|
||
};
|
||
|
||
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";
|
||
changelog = "https://github.com/MrBin99/django-vite/releases/tag/${version}";
|
||
license = licenses.asl20;
|
||
maintainers = with maintainers; [ sephi ];
|
||
};
|
||
}
|