From 84d133c8451646d4a55a2365b16983d08e41461a Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Tue, 25 Dec 2018 23:09:53 +0000 Subject: [PATCH] pythonPackages.secretstorage: init at 2.3.1 for Python 2 --- .../python-modules/secretstorage/2.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/secretstorage/2.nix diff --git a/pkgs/development/python-modules/secretstorage/2.nix b/pkgs/development/python-modules/secretstorage/2.nix new file mode 100644 index 000000000000..8fa044e638a4 --- /dev/null +++ b/pkgs/development/python-modules/secretstorage/2.nix @@ -0,0 +1,24 @@ +{ lib, fetchPypi, buildPythonPackage, cryptography, dbus-python }: + +buildPythonPackage rec { + pname = "secretstorage"; + version = "2.3.1"; + + src = fetchPypi { + pname = "SecretStorage"; + inherit version; + sha256 = "1di9gx4m27brs6ar774m64s017iz742mnmw39kvfc8skfs3mrxis"; + }; + + propagatedBuildInputs = [ cryptography dbus-python ]; + + # Needs a D-Bus Sesison + doCheck = false; + + meta = with lib; { + homepage = https://github.com/mitya57/secretstorage; + description = "Python bindings to FreeDesktop.org Secret Service API"; + license = licenses.bsd3; + maintainers = with maintainers; [ orivej ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a64ce4e869c1..d3e384d8ed26 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4258,7 +4258,9 @@ in { blessings = callPackage ../development/python-modules/blessings { }; - secretstorage = callPackage ../development/python-modules/secretstorage { }; + secretstorage = if isPy3k + then callPackage ../development/python-modules/secretstorage { } + else callPackage ../development/python-modules/secretstorage/2.nix { }; semantic = callPackage ../development/python-modules/semantic { };