diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-16 14:54:07 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-17 07:46:59 +0200 |
commit | 6f4332daa4dc6111317fa9af4b3f2c9ac45785a3 (patch) | |
tree | b63a881f22dd017fc6cece30fd5ba77259615b8f /pkgs | |
parent | 7aa1a742c4a9c979b354091015cfaa76f050c8b6 (diff) | |
download | nixlib-6f4332daa4dc6111317fa9af4b3f2c9ac45785a3.tar nixlib-6f4332daa4dc6111317fa9af4b3f2c9ac45785a3.tar.gz nixlib-6f4332daa4dc6111317fa9af4b3f2c9ac45785a3.tar.bz2 nixlib-6f4332daa4dc6111317fa9af4b3f2c9ac45785a3.tar.lz nixlib-6f4332daa4dc6111317fa9af4b3f2c9ac45785a3.tar.xz nixlib-6f4332daa4dc6111317fa9af4b3f2c9ac45785a3.tar.zst nixlib-6f4332daa4dc6111317fa9af4b3f2c9ac45785a3.zip |
pythonPackages.filebrowser_safe: refactor move to python-modules
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/filebrowser_safe/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 34 |
2 files changed, 41 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/filebrowser_safe/default.nix b/pkgs/development/python-modules/filebrowser_safe/default.nix new file mode 100644 index 000000000000..cbef81de8cd9 --- /dev/null +++ b/pkgs/development/python-modules/filebrowser_safe/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, django +}: + +buildPythonPackage rec { + version = "0.3.6"; + pname = "filebrowser_safe"; + + src = fetchPypi { + inherit pname version; + sha256 = "02bn60fdslvng2ckn65fms3hjbzgsa8qa5161a8lr720wbx8gpj2"; + }; + + buildInputs = [ django ]; + + # There is no test embedded + doCheck = false; + + meta = with stdenv.lib; { + description = "A snapshot of django-filebrowser for the Mezzanine CMS"; + longDescription = '' + filebrowser_safe was created to provide a snapshot of the + FileBrowser asset manager for Django, to be referenced as a + dependency for the Mezzanine CMS for Django. + + At the time of filebrowser_safe's creation, FileBrowser was + incorrectly packaged on PyPI, and had also dropped compatibility + with Django 1.1 - filebrowser_safe was therefore created to + address these specific issues. + ''; + homepage = https://github.com/stephenmcd/filebrowser-safe; + downloadPage = https://pypi.python.org/pypi/filebrowser_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 1512c986358e..1cbaad29e910 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2380,39 +2380,7 @@ in { fdroidserver = callPackage ../development/python-modules/fdroidserver { }; - filebrowser_safe = buildPythonPackage rec { - version = "0.3.6"; - name = "filebrowser_safe-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/f/filebrowser_safe/${name}.tar.gz"; - sha256 = "02bn60fdslvng2ckn65fms3hjbzgsa8qa5161a8lr720wbx8gpj2"; - }; - - buildInputs = [ self.django ]; - - # There is no test embedded - doCheck = false; - - meta = { - description = "A snapshot of django-filebrowser for the Mezzanine CMS"; - longDescription = '' - filebrowser_safe was created to provide a snapshot of the FileBrowser - asset manager for Django, to be referenced as a dependency for the - Mezzanine CMS for Django. - - At the time of filebrowser_safe's creation, FileBrowser was incorrectly - packaged on PyPI, and had also dropped compatibility with Django 1.1 - - filebrowser_safe was therefore created to address these specific - issues. - ''; - homepage = https://github.com/stephenmcd/filebrowser-safe; - downloadPage = https://pypi.python.org/pypi/filebrowser_safe/; - license = licenses.free; - maintainers = with maintainers; [ prikhi ]; - platforms = platforms.linux; - }; - }; + filebrowser_safe = callPackage ../development/python-modules/filebrowser_safe { }; pycodestyle = callPackage ../development/python-modules/pycodestyle { }; |