2018-10-16 19:47:51 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytz
|
2019-08-25 13:43:24 +02:00
|
|
|
, pythonOlder
|
2018-10-16 19:47:51 +02:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-modelcluster";
|
2019-08-20 11:51:07 +02:00
|
|
|
version = "5.0";
|
2018-10-16 19:47:51 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-20 11:51:07 +02:00
|
|
|
sha256 = "0zcn1b0lp9dg6xvz8p8v1hrrgqj71izqalqz2dp1nz5rbj3s34x2";
|
2018-10-16 19:47:51 +02:00
|
|
|
};
|
|
|
|
|
2019-08-25 13:43:24 +02:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2018-10-16 19:47:51 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytz six ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Django extension to allow working with 'clusters' of models as a single unit, independently of the database";
|
|
|
|
homepage = https://github.com/torchbox/django-modelcluster/;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|