From 18c345dfaa5ae78dc16868ac24925b234e5a3516 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 14:39:59 -0400 Subject: [PATCH] pythonPackages.exifread: refactor move to python-modules --- .../python-modules/exifread/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------- 2 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/exifread/default.nix diff --git a/pkgs/development/python-modules/exifread/default.nix b/pkgs/development/python-modules/exifread/default.nix new file mode 100644 index 000000000000..61593b625f72 --- /dev/null +++ b/pkgs/development/python-modules/exifread/default.nix @@ -0,0 +1,22 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "ExifRead"; + version = "2.1.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"; + }; + + meta = with stdenv.lib; { + description = "Easy to use Python module to extract Exif metadata from tiff and jpeg files"; + homepage = "https://github.com/ianare/exif-py"; + license = licenses.bsd0; + maintainers = with maintainers; [ vozz ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 55213482b0cc..fefd8d0bd3f0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2358,21 +2358,7 @@ in { eventlet = callPackage ../development/python-modules/eventlet { }; - exifread = buildPythonPackage rec { - name = "ExifRead-2.1.2"; - - meta = { - description = "Easy to use Python module to extract Exif metadata from tiff and jpeg files"; - homepage = "https://github.com/ianare/exif-py"; - license = "BSD"; - maintainers = with maintainers; [ vozz ]; - }; - - src = pkgs.fetchurl { - url = "mirror://pypi/E/ExifRead/${name}.tar.gz"; - sha256 = "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"; - }; - }; + exifread = callPackage ../development/python-modules/exifread { }; fastimport = callPackage ../development/python-modules/fastimport { };