1
0
Fork 0

python3: Add makeshift django3 package till there's an official one.

This commit is contained in:
Kevin Baensch 2020-01-26 17:59:23 +01:00
parent 8295a87aa8
commit 75fcb56e28
Signed by: derped
GPG Key ID: C0F1D326C7626543
3 changed files with 30 additions and 1 deletions

28
pkgs/django3/default.nix Normal file
View File

@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
asgiref, pytz, sqlparse
}:
buildPythonPackage rec {
pname = "Django";
version = "3.0.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1jjih2x6kyp89kc5p98f30pm2isc2phf35qdhs9hhf8i3vw7adcc";
};
propagatedBuildInputs = [ asgiref pytz sqlparse ];
# too complicated to setup
doCheck = false;
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}

View File

@ -11,6 +11,7 @@ in {
theme_flat-remix = callPackage ./flat-remix { };
theme_sddm_midnight = callPackage ./sddm_midnight { };
xdiskusage = callPackage ./xdiskusage { };
django3 = pkgs.python3Packages.callPackage ./django3 { };
};
};
}

View File

@ -9,7 +9,7 @@ in {
bpython
# cairosvg cairocffi
configparser
django
pkgs.django3
emoji
epc
flake8