2021-12-07 17:51:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, django
|
|
|
|
, django-jinja
|
|
|
|
, python
|
|
|
|
}:
|
2017-08-31 19:24:35 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-sites";
|
2021-12-08 20:09:30 +00:00
|
|
|
version = "0.11";
|
2017-08-31 19:24:35 +00:00
|
|
|
|
2021-12-07 17:51:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "niwinz";
|
|
|
|
repo = "django-sites";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-MQtQC+9DyS1ICXXovbqPpkKIQ5wpuJDgq3Lcd/1kORU=";
|
2017-08-31 19:24:35 +00:00
|
|
|
};
|
|
|
|
|
2021-12-07 17:51:23 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
django-jinja
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2017-08-31 19:24:35 +00:00
|
|
|
|
2021-12-07 17:51:23 +00:00
|
|
|
${python.interpreter} runtests.py
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2019-06-16 12:49:23 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-12-07 17:51:23 +00:00
|
|
|
description = "Alternative implementation of django sites framework";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/niwinz/django-sites";
|
2019-06-16 12:49:23 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2017-08-31 19:24:35 +00:00
|
|
|
}
|