2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
|
|
|
django-jinja,
|
|
|
|
python,
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-sites";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.11";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "niwinz";
|
|
|
|
repo = "django-sites";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-MQtQC+9DyS1ICXXovbqPpkKIQ5wpuJDgq3Lcd/1kORU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ django ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ django-jinja ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
${python.interpreter} runtests.py
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "Alternative implementation of django sites framework";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/niwinz/django-sites";
|
|
|
|
license = lib.licenses.bsd3;
|
2023-08-22 20:05:09 +00:00
|
|
|
# has not been updated for django>=4.0
|
|
|
|
broken = lib.versionAtLeast django.version "4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|