From 87e67cb4e51c237fe9963dc277f5b66da86e90d0 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 11 Jan 2017 18:11:51 +0100 Subject: [PATCH] pythonPackages.yenc: init at 0.4.0 --- .../python-modules/yenc/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 3 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/yenc/default.nix diff --git a/pkgs/development/python-modules/yenc/default.nix b/pkgs/development/python-modules/yenc/default.nix new file mode 100644 index 000000000000..7f9f3b6467af --- /dev/null +++ b/pkgs/development/python-modules/yenc/default.nix @@ -0,0 +1,32 @@ +{ fetchurl +, lib +, buildPythonPackage +, python +, isPyPy +, isPy3k +}: + +let + pname = "yenc"; + version = "0.4.0"; +in buildPythonPackage { + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://bitbucket.org/dual75/yenc/get/${version}.tar.gz"; + sha256 = "0zkyzxgq30mbrzpnqam4md0cb09d5falh06m0npc81nnlhcghkp7"; + }; + + checkPhase = '' + ${python.interpreter} -m unittest discover -s test + ''; + + disabled = isPy3k || isPyPy; + + meta = { + description = "Encoding and decoding yEnc"; + license = lib.licenses.lgpl21; + homepage = https://bitbucket.org/dual75/yenc; + maintainers = with lib.maintainers; [ fridh ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2eaea361b1b4..e58cc0f63feb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -31902,6 +31902,9 @@ EOF }; }; + yenc = callPackage ../development/python-modules/yenc { + }; + zeitgeist = if isPy3k then throw "zeitgeist not supported for interpreter ${python.executable}" else (pkgs.zeitgeist.override{python2Packages=self;}).py;