2018-10-16 18:47:51 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytz
|
2019-08-25 12:43:24 +01:00
|
|
|
, pythonOlder
|
2018-10-16 18:47:51 +01:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-modelcluster";
|
2020-06-05 18:44:33 +01:00
|
|
|
version = "5.0.2";
|
2018-10-16 18:47:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:33 +01:00
|
|
|
sha256 = "c7a42cf9b93d1161a10bf59919f7ee52d996a523a4134b2a136f6fe1eba7a2fa";
|
2018-10-16 18:47:51 +01:00
|
|
|
};
|
|
|
|
|
2019-08-25 12:43:24 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2018-10-16 18:47:51 +01: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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/torchbox/django-modelcluster/";
|
2018-10-16 18:47:51 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|