From 4aec503d81aa7f6ba40b6e42e05dfca3fcc0c9ab Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Thu, 25 Oct 2018 21:19:28 -0400 Subject: [PATCH] pythonPackages.pexif: refactor move to python-modules --- .../python-modules/pexif/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/pexif/default.nix 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 { };