pythonPakcages.django_modelcluster: refactor move to python-modules

wip/yesman
Chris Ostrouchov 6 years ago committed by Frederik Rietdijk
parent 194dd4b2f2
commit 90859b17c6
  1. 28
      pkgs/development/python-modules/django_modelcluster/default.nix
  2. 21
      pkgs/top-level/python-packages.nix

@ -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 ];
};
}

@ -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 { };

Loading…
Cancel
Save