From 2d5c53ce49c69722f80383c595a1fa2d2b576203 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 10:40:22 -0400 Subject: [PATCH] pythonPackages.poyo: refactor move to python-modules --- .../python-modules/poyo/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/poyo/default.nix diff --git a/pkgs/development/python-modules/poyo/default.nix b/pkgs/development/python-modules/poyo/default.nix new file mode 100644 index 000000000000..5a05f2dcafa4 --- /dev/null +++ b/pkgs/development/python-modules/poyo/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + version = "0.4.0"; + pname = "poyo"; + + src = fetchPypi { + inherit pname version; + sha256 = "1f48ffl0j1f2lmgabajps7v8w90ppxbp5168gh8kh27bjd8xk5ca"; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/hackebrot/poyo; + description = "A lightweight YAML Parser for Python"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cd655aa83b39..97fb2d32fc78 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2052,21 +2052,7 @@ in { inherit (pkgs.libsForQt5) poppler; }; - poyo = buildPythonPackage rec { - version = "0.4.0"; - name = "poyo-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/poyo/${name}.tar.gz"; - sha256 = "1f48ffl0j1f2lmgabajps7v8w90ppxbp5168gh8kh27bjd8xk5ca"; - }; - - meta = { - homepage = https://github.com/hackebrot/poyo; - description = "A lightweight YAML Parser for Python"; - license = licenses.mit; - }; - }; + poyo = callPackage ../development/python-modules/poyo { }; prov = callPackage ../development/python-modules/prov { };