depot/third_party/nixpkgs/pkgs/development/python-modules/django-vite/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

40 lines
833 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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 = "refs/tags/${version}";
hash = "sha256-lYRFNHTIQBn7CDnWFxSzXELzqEtQcbwHedSZnR7ZtbE=";
};
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 ];
};
}