28 lines
717 B
Nix
28 lines
717 B
Nix
{ lib, buildPythonPackage, fetchPypi, django, poetry, 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 ];
|
|
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;
|
|
};
|
|
}
|