2017-08-31 20:24:35 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, django }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-sites";
|
2018-07-22 11:08:07 +01:00
|
|
|
version = "0.10";
|
2017-08-31 20:24:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:08:07 +01:00
|
|
|
sha256 = "f6f9ae55a05288a95567f5844222052b6b997819e174f4bde4e7c23763be6fc3";
|
2017-08-31 20:24:35 +01:00
|
|
|
};
|
2019-06-16 13:49:23 +01:00
|
|
|
# LICENSE file appears to be missing from pypi package, but expected by the installer
|
|
|
|
# https://github.com/niwinz/django-sites/issues/11
|
|
|
|
postPatch = ''
|
|
|
|
touch LICENSE
|
|
|
|
'';
|
2017-08-31 20:24:35 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2019-06-16 13:49:23 +01:00
|
|
|
# required files for test don't seem to be included in pypi package, full source for 0.10
|
|
|
|
# version doesn't appear to be present on github
|
|
|
|
# https://github.com/niwinz/django-sites/issues/9
|
2017-08-31 20:24:35 +01:00
|
|
|
doCheck = false;
|
2019-06-16 13:49:23 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
Alternative implementation of django "sites" framework
|
|
|
|
based on settings instead of models.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/niwinz/django-sites";
|
2019-06-16 13:49:23 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2017-08-31 20:24:35 +01:00
|
|
|
}
|