From 82878eaade2cb9f4c6979b51edbf82a6b46c3731 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 15:03:54 -0400 Subject: [PATCH] pythonPackages.xkcdpass: refactor move to python-modules --- .../python-modules/xkcdpass/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +-------------- 2 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/xkcdpass/default.nix diff --git a/pkgs/development/python-modules/xkcdpass/default.nix b/pkgs/development/python-modules/xkcdpass/default.nix new file mode 100644 index 000000000000..d191ab859282 --- /dev/null +++ b/pkgs/development/python-modules/xkcdpass/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "xkcdpass"; + version = "1.4.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "4c1f8bee886820c42ccc64c15c3a2275dc6d01028cf6af7c481ded87267d8269"; + }; + + # No tests included + # https://github.com/redacted/XKCD-password-generator/issues/32 + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://pypi.python.org/pypi/xkcdpass/; + description = "Generate secure multiword passwords/passphrases, inspired by XKCD"; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ca57d9371fd1..eb826e61a131 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4485,25 +4485,7 @@ in { xgboost = pkgs.xgboost; }; - xkcdpass = buildPythonPackage rec { - name = "xkcdpass-${version}"; - version = "1.4.2"; - src = pkgs.fetchurl { - url = "mirror://pypi/x/xkcdpass/xkcdpass-1.4.2.tar.gz"; - sha256 = "4c1f8bee886820c42ccc64c15c3a2275dc6d01028cf6af7c481ded87267d8269"; - }; - - # No tests included - # https://github.com/redacted/XKCD-password-generator/issues/32 - doCheck = false; - - meta = { - homepage = https://pypi.python.org/pypi/xkcdpass/; - description = "Generate secure multiword passwords/passphrases, inspired by XKCD"; - license = licenses.bsd3; - maintainers = [ ]; - }; - }; + xkcdpass = callPackage ../development/python-modules/xkcdpass { }; xlsx2csv = buildPythonPackage rec { name = "xlsx2csv-${version}";