From 99e6b63199e3dcafdb2bea76aef72ecf4dc86d1d Mon Sep 17 00:00:00 2001 From: Carl Sverre Date: Thu, 24 Nov 2016 14:35:41 -0800 Subject: [PATCH] pycryptodome: init at 3.4.3 --- .../python-modules/pycryptodome/default.nix | 18 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/development/python-modules/pycryptodome/default.nix diff --git a/pkgs/development/python-modules/pycryptodome/default.nix b/pkgs/development/python-modules/pycryptodome/default.nix new file mode 100644 index 000000000000..04964ab03dd2 --- /dev/null +++ b/pkgs/development/python-modules/pycryptodome/default.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchurl, python, buildPythonPackage, gmp }: + +buildPythonPackage rec { + version = "3.4.3"; + name = "pycryptodome-${version}"; + namePrefix = ""; + + src = fetchurl { + url = "mirror://pypi/p/pycryptodome/${name}.tar.gz"; + sha256 = "1x2kk2va77lqys2dd7gwh35m4vrp052zz5hvv1zqxzksg2srf5jb"; + }; + + meta = { + homepage = "https://www.pycryptodome.org/"; + description = "Python Cryptography Toolkit"; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dac77f709790..c38f6aafaaf2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -218,6 +218,8 @@ in { pycrypto = callPackage ../development/python-modules/pycrypto { }; + pycryptodome = callPackage ../development/python-modules/pycryptodome { }; + pyexiv2 = if (!isPy3k) then callPackage ../development/python-modules/pyexiv2 {} else throw "pyexiv2 not supported for interpreter ${python.executable}"; pygame = callPackage ../development/python-modules/pygame { };