about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/yenc/default.nix
blob: 13c8d53f19b38962710639bb8b6597bb0aabd899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ fetchurl
, lib
, buildPythonPackage
, python
, isPyPy
, isPy3k
}:

buildPythonPackage rec{
  pname = "yenc";
  version = "0.4.0";
  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 ];
  };
}