2023-01-11 07:51:40 +00:00
|
|
|
|
{ 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;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
rev = "refs/tags/${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
hash = "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";
|
|
|
|
|
changelog = "https://github.com/MrBin99/django-vite/releases/tag/${version}";
|
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
maintainers = with maintainers; [ sephi ];
|
|
|
|
|
};
|
|
|
|
|
}
|