From d1a868f1fad7a6277ce4800a49497c690b2db201 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 11:14:35 -0400 Subject: [PATCH] pythonPackages.purepng: refactor move to python-modules --- .../python-modules/purepng/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/purepng/default.nix diff --git a/pkgs/development/python-modules/purepng/default.nix b/pkgs/development/python-modules/purepng/default.nix new file mode 100644 index 000000000000..49e4d93a5342 --- /dev/null +++ b/pkgs/development/python-modules/purepng/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "purepng"; + version = "0.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1kcl7a6d7d59360fbz2jwfk6ha6pmqgn396962p4s62j893d2r0d"; + }; + + meta = with stdenv.lib; { + description = "Pure Python library for PNG image encoding/decoding"; + homepage = https://github.com/scondo/purepng; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9a6d26356d70..48f971422658 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3461,21 +3461,7 @@ in { pyplatec = callPackage ../development/python-modules/pyplatec { }; - purepng = buildPythonPackage rec { - name = "purepng-${version}"; - version = "0.2.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/purepng/${name}.tar.gz"; - sha256 = "1kcl7a6d7d59360fbz2jwfk6ha6pmqgn396962p4s62j893d2r0d"; - }; - - meta = { - description = "Pure Python library for PNG image encoding/decoding"; - homepage = https://github.com/scondo/purepng; - license = licenses.mit; - }; - }; + purepng = callPackage ../development/python-modules/purepng { }; pymaging = buildPythonPackage rec { name = "pymaging-unstable-2016-11-16";