1{ lib, buildPythonPackage, fetchPypi, django }: 2 3buildPythonPackage rec { 4 pname = "django-sites"; 5 version = "0.10"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "f6f9ae55a05288a95567f5844222052b6b997819e174f4bde4e7c23763be6fc3"; 10 }; 11 # LICENSE file appears to be missing from pypi package, but expected by the installer 12 # https://github.com/niwinz/django-sites/issues/11 13 postPatch = '' 14 touch LICENSE 15 ''; 16 17 propagatedBuildInputs = [ django ]; 18 19 # required files for test don't seem to be included in pypi package, full source for 0.10 20 # version doesn't appear to be present on github 21 # https://github.com/niwinz/django-sites/issues/9 22 doCheck = false; 23 24 meta = { 25 description = '' 26 Alternative implementation of django "sites" framework 27 based on settings instead of models. 28 ''; 29 homepage = "https://github.com/niwinz/django-sites"; 30 license = lib.licenses.bsd3; 31 }; 32}