pythonPakcages.django_modelcluster: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 13:47:51 -04:00 committed by Frederik Rietdijk
parent 194dd4b2f2
commit 90859b17c6
2 changed files with 29 additions and 20 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytz
, six
}:
buildPythonPackage rec {
pname = "django-modelcluster";
version = "0.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "1plsdi44dvsj2sfx79lsrccjfg0ymajcsf5n0mln4cwd4qi5mwpx";
};
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 ];
};
}

View File

@ -2300,26 +2300,7 @@ in {
django_nose = callPackage ../development/python-modules/django_nose { };
django_modelcluster = buildPythonPackage rec {
name = "django-modelcluster-${version}";
version = "0.6.2";
src = pkgs.fetchurl {
url = "mirror://pypi/d/django-modelcluster/django-modelcluster-${version}.tar.gz";
sha256 = "1plsdi44dvsj2sfx79lsrccjfg0ymajcsf5n0mln4cwd4qi5mwpx";
};
doCheck = false;
propagatedBuildInputs = with self; [ pytz six ];
meta = {
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 ];
};
};
django_modelcluster = callPackage ../development/python-modules/django_modelcluster { };
djangorestframework = callPackage ../development/python-modules/djangorestframework { };