diff --git a/pkgs/development/python-modules/pexif/default.nix b/pkgs/development/python-modules/pexif/default.nix new file mode 100644 index 000000000000..ac1c7de86820 --- /dev/null +++ b/pkgs/development/python-modules/pexif/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "pexif"; + version = "0.15"; + + src = fetchPypi { + inherit pname version; + sha256 = "45a3be037c7ba8b64bbfc48f3586402cc17de55bb9d7357ef2bc99954a18da3f"; + }; + + meta = with stdenv.lib; { + description = "A module for editing JPEG EXIF data"; + homepage = http://www.benno.id.au/code/pexif/; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4e1f203a2bd1..098b4e9acb1a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3129,21 +3129,7 @@ in { percol = callPackage ../development/python-modules/percol { }; - pexif = buildPythonPackage rec { - name = "pexif-${version}"; - version = "0.15"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pexif/pexif-0.15.tar.gz"; - sha256 = "45a3be037c7ba8b64bbfc48f3586402cc17de55bb9d7357ef2bc99954a18da3f"; - }; - - meta = { - description = "A module for editing JPEG EXIF data"; - homepage = http://www.benno.id.au/code/pexif/; - license = licenses.mit; - }; - }; + pexif = callPackage ../development/python-modules/pexif { }; pexpect = callPackage ../development/python-modules/pexpect { };