pythonPackages.django_reversion: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 13:49:52 -04:00 committed by Frederik Rietdijk
parent 90859b17c6
commit 99a5f22de6
2 changed files with 25 additions and 17 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
}:
buildPythonPackage rec {
pname = "django-reversion";
version = "1.10.1";
src = fetchPypi {
inherit pname version;
sha256 = "01iv8w6lmmq98qjhxmnp8ddjxifmhxcmp612ijd91wc8nv8lk12w";
};
propagatedBuildInputs = [ django ];
meta = with stdenv.lib; {
description = "An extension to the Django web framework that provides comprehensive version control facilities";
homepage = https://github.com/etianen/django-reversion;
license = licenses.bsd3;
};
}

View File

@ -2308,23 +2308,7 @@ in {
django_redis = callPackage ../development/python-modules/django_redis { };
django_reversion = buildPythonPackage rec {
name = "django-reversion-${version}";
version = "1.10.1";
src = pkgs.fetchurl {
url = "mirror://pypi/d/django-reversion/${name}.tar.gz";
sha256 = "01iv8w6lmmq98qjhxmnp8ddjxifmhxcmp612ijd91wc8nv8lk12w";
};
propagatedBuildInputs = with self; [ django ];
meta = {
description = "An extension to the Django web framework that provides comprehensive version control facilities";
homepage = https://github.com/etianen/django-reversion;
license = licenses.bsd3;
};
};
django_reversion = callPackage ../development/python-modules/django_reversion { };
django_silk = buildPythonPackage rec {
name = "django-silk-${version}";