···11+{ lib, isPy3k, fetchPypi, buildPythonPackage
22+, pytest }:
33+44+buildPythonPackage rec {
55+ pname = "atpublic";
66+ version = "1.0";
77+ disabled = !isPy3k;
88+99+ src = fetchPypi {
1010+ inherit pname version;
1111+ sha256 = "0i3sbxkdlbb4560rrlmwwd5y4ps7k73lp4d8wnmd7ag9k426gjkx";
1212+ };
1313+1414+ checkInputs = [
1515+ pytest
1616+ ];
1717+1818+ checkPhase = ''
1919+ pytest --pyargs public
2020+ '';
2121+2222+ meta = with lib; {
2323+ homepage = https://public.readthedocs.io/en/latest/;
2424+ description = "A decorator and function which populates a module's __all__ and globals";
2525+ longDescription = ''
2626+ This is a very simple decorator and function which populates a module's
2727+ __all__ and optionally the module globals.
2828+2929+ This provides both a pure-Python implementation and a C implementation. It is
3030+ proposed that the C implementation be added to builtins_ for Python 3.6.
3131+3232+ This proposal seems to have been rejected, for more information see
3333+ https://bugs.python.org/issue26632.
3434+ '';
3535+ license = licenses.asl20;
3636+ maintainers = with maintainers; [ eadwu ];
3737+ };
3838+}