···1+{ lib, isPy3k, fetchPypi, buildPythonPackage
2+, pytest }:
3+4+buildPythonPackage rec {
5+ pname = "atpublic";
6+ version = "1.0";
7+ disabled = !isPy3k;
8+9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "0i3sbxkdlbb4560rrlmwwd5y4ps7k73lp4d8wnmd7ag9k426gjkx";
12+ };
13+14+ checkInputs = [
15+ pytest
16+ ];
17+18+ checkPhase = ''
19+ pytest --pyargs public
20+ '';
21+22+ meta = with lib; {
23+ homepage = https://public.readthedocs.io/en/latest/;
24+ description = "A decorator and function which populates a module's __all__ and globals";
25+ longDescription = ''
26+ This is a very simple decorator and function which populates a module's
27+ __all__ and optionally the module globals.
28+29+ This provides both a pure-Python implementation and a C implementation. It is
30+ proposed that the C implementation be added to builtins_ for Python 3.6.
31+32+ This proposal seems to have been rejected, for more information see
33+ https://bugs.python.org/issue26632.
34+ '';
35+ license = licenses.asl20;
36+ maintainers = with maintainers; [ eadwu ];
37+ };
38+}