From 84d1667392e08c0fbb9c0d7d9042fe3d912005a6 Mon Sep 17 00:00:00 2001 From: Jonathan Queiroz Date: Fri, 24 Aug 2018 04:54:12 -0300 Subject: [PATCH] pythonPackages.libkeepass: init at 0.3.0 (#45528) --- .../python-modules/libkeepass/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/libkeepass/default.nix diff --git a/pkgs/development/python-modules/libkeepass/default.nix b/pkgs/development/python-modules/libkeepass/default.nix new file mode 100644 index 000000000000..b707b3430568 --- /dev/null +++ b/pkgs/development/python-modules/libkeepass/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchPypi, buildPythonPackage +, lxml, pycryptodome, colorama }: + +buildPythonPackage rec { + pname = "libkeepass"; + version = "0.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "3ed79ea786f7020b14b83c082612ed8fbcc6f8edf65e1697705837ab9e40e9d7"; + }; + + propagatedBuildInputs = [ lxml pycryptodome colorama ]; + + # No tests on PyPI + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/libkeepass/libkeepass; + description = "A library to access KeePass 1.x/KeePassX (v3) and KeePass 2.x (v4) files"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ jqueiroz ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2e40e1e56e34..9f67ee94d053 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6927,6 +6927,8 @@ in { inherit (pkgs.linuxPackages) nvidia_x11; }; + libkeepass = callPackage ../development/python-modules/libkeepass { }; + librepo = toPythonModule (pkgs.librepo.override { inherit python; });