depot/third_party/nixpkgs/pkgs/development/python-modules/django-sites/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
818 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
django-jinja,
python,
}:
buildPythonPackage rec {
pname = "django-sites";
version = "0.11";
format = "setuptools";
src = fetchFromGitHub {
owner = "niwinz";
repo = "django-sites";
rev = version;
hash = "sha256-MQtQC+9DyS1ICXXovbqPpkKIQ5wpuJDgq3Lcd/1kORU=";
};
propagatedBuildInputs = [ django ];
nativeCheckInputs = [ django-jinja ];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py
runHook postCheck
'';
meta = {
description = "Alternative implementation of django sites framework";
homepage = "https://github.com/niwinz/django-sites";
license = lib.licenses.bsd3;
# has not been updated for django>=4.0
broken = lib.versionAtLeast django.version "4";
};
}