diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-16 15:40:14 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-10-18 11:02:23 +0200 |
commit | d23381f713a06e2f75d2b7111463c1495c0c2ef1 (patch) | |
tree | 509c0626ef674f7dee01ae8badef714103835fb6 /pkgs | |
parent | d968906517247932f5e5e35aabe0fa32eb69ffaf (diff) | |
download | nixlib-d23381f713a06e2f75d2b7111463c1495c0c2ef1.tar nixlib-d23381f713a06e2f75d2b7111463c1495c0c2ef1.tar.gz nixlib-d23381f713a06e2f75d2b7111463c1495c0c2ef1.tar.bz2 nixlib-d23381f713a06e2f75d2b7111463c1495c0c2ef1.tar.lz nixlib-d23381f713a06e2f75d2b7111463c1495c0c2ef1.tar.xz nixlib-d23381f713a06e2f75d2b7111463c1495c0c2ef1.tar.zst nixlib-d23381f713a06e2f75d2b7111463c1495c0c2ef1.zip |
pythonPackages.grappelli_safe: refactor move to pyhton-modules
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/grappelli_safe/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 28 |
2 files changed, 35 insertions, 27 deletions
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 000000000000..f32246c90055 --- /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 0562d60ab159..f3c49c3159d8 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: |