depot/nix/pkgs/django-tailwind.nix

28 lines
727 B
Nix

{ lib, buildPythonPackage, fetchPypi, django, poetry-core, cookiecutter }:
buildPythonPackage rec {
pname = "django-tailwind";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256:187alssasfmnbq1rdhgs8np1j494mcgndxx7cw3lyyzqmkrsn0c2";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'cookiecutter = "^1.7.2"' 'cookiecutter = ">=1.7.2"'
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ django cookiecutter ];
format = "pyproject";
doCheck = false;
meta = with lib; {
description = "Integration of Tailwind CSS with Django";
homepage = "https://github.com/timonweb/django-tailwind";
license = licenses.mit;
};
}