1{ buildPythonPackage, isPy3k, lib, fetchPypi, six, pytest }:
2
3buildPythonPackage rec {
4 pname = "pybase64";
5 version = "1.1.4";
6
7 disabled = !isPy3k;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "f0e0db1dee2a2cbf35e6710ea138594ecc1e0f491ff9103f136de83d8f159315";
12 };
13
14 propagatedBuildInputs = [ six ];
15 checkInputs = [ pytest ];
16
17 checkPhase = ''
18 py.test
19 '';
20
21 meta = with lib; {
22 homepage = "https://pypi.python.org/pypi/pybase64";
23 description = "Fast Base64 encoding/decoding";
24 license = licenses.bsd2;
25 maintainers = with maintainers; [ ma27 ];
26 };
27}