diff --git a/pkgs/development/python-modules/grappelli_safe/default.nix b/pkgs/development/python-modules/grappelli_safe/default.nix new file mode 100644 index 00000000000..f32246c9005 --- /dev/null +++ b/pkgs/development/python-modules/grappelli_safe/default.nix @@ -0,0 +1,34 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + version = "0.3.13"; + pname = "grappelli_safe"; + + src = fetchPypi { + inherit pname version; + sha256 = "8b21b4724bce449cc4f22dc74ed0be9b3e841d968f3271850bf4836864304eb6"; + }; + + meta = with stdenv.lib; { + description = "A snapshot of django-grappelli for the Mezzanine CMS"; + longDescription = '' + grappelli_safe was created to provide a snapshot of the + Grappelli admin skin for Django, to be referenced as a + dependency for the Mezzanine CMS for Django. + + At the time of grappelli_safe's creation, Grappelli was + incorrectly packaged on PyPI, and had also dropped compatibility + with Django 1.1 - grappelli_safe was therefore created to + address these specific issues. + ''; + homepage = https://github.com/stephenmcd/grappelli-safe; + downloadPage = http://pypi.python.org/pypi/grappelli_safe/; + license = licenses.free; + maintainers = with maintainers; [ prikhi ]; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0562d60ab15..f3c49c3159d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2248,33 +2248,7 @@ in { graph-tool = callPackage ../development/python-modules/graph-tool/2.x.x.nix { }; - grappelli_safe = buildPythonPackage rec { - version = "0.3.13"; - name = "grappelli_safe-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/g/grappelli_safe/${name}.tar.gz"; - sha256 = "8b21b4724bce449cc4f22dc74ed0be9b3e841d968f3271850bf4836864304eb6"; - }; - - meta = { - description = "A snapshot of django-grappelli for the Mezzanine CMS"; - longDescription = '' - grappelli_safe was created to provide a snapshot of the Grappelli admin - skin for Django, to be referenced as a dependency for the Mezzanine CMS - for Django. - - At the time of grappelli_safe's creation, Grappelli was incorrectly - packaged on PyPI, and had also dropped compatibility with Django 1.1 - - grappelli_safe was therefore created to address these specific issues. - ''; - homepage = https://github.com/stephenmcd/grappelli-safe; - downloadPage = http://pypi.python.org/pypi/grappelli_safe/; - license = licenses.free; - maintainers = with maintainers; [ prikhi ]; - platforms = platforms.linux; - }; - }; + grappelli_safe = callPackage ../development/python-modules/grappelli_safe { }; pytorch = let # Fails with CUDA 9.1 and GCC 6.4: