From 5f58cd99d5a2145d4495d2ed5940b1acea189b1a Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sun, 28 Oct 2018 12:51:37 -0400 Subject: [PATCH] pythonPackages.upass: refactor move to python-modules --- .../python-modules/upass/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +--------------- 2 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/upass/default.nix diff --git a/pkgs/development/python-modules/upass/default.nix b/pkgs/development/python-modules/upass/default.nix new file mode 100644 index 000000000000..baf536fdbadd --- /dev/null +++ b/pkgs/development/python-modules/upass/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchurl +, pyperclip +, urwid +}: + +buildPythonPackage rec { + version = "0.1.4"; + pname = "upass"; + + src = fetchurl { + url = "https://github.com/Kwpolska/upass/archive/v${version}.tar.gz"; + sha256 = "0f2lyi7xhvb60pvzx82dpc13ksdj5k92ww09czclkdz8k0dxa7hb"; + }; + + propagatedBuildInputs = [ pyperclip urwid ]; + + doCheck = false; + + meta = with stdenv.lib; { + description = "Console UI for pass"; + homepage = https://github.com/Kwpolska/upass; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e0dd52a1bf3b..1d4b44b6fb6f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4057,28 +4057,7 @@ in { linecache2 = callPackage ../development/python-modules/linecache2 { }; - upass = buildPythonPackage rec { - version = "0.1.4"; - name = "upass-${version}"; - - src = pkgs.fetchurl { - url = "https://github.com/Kwpolska/upass/archive/v${version}.tar.gz"; - sha256 = "0f2lyi7xhvb60pvzx82dpc13ksdj5k92ww09czclkdz8k0dxa7hb"; - }; - - propagatedBuildInputs = with self; [ - pyperclip - urwid - ]; - - doCheck = false; - - meta = { - description = "Console UI for pass"; - homepage = https://github.com/Kwpolska/upass; - license = licenses.bsd3; - }; - }; + upass = callPackage ../development/python-modules/upass { }; update_checker = callPackage ../development/python-modules/update_checker {};