Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 46 lines 1.2 kB view raw
1{ lib, isPy3k, pythonOlder, fetchPypi, buildPythonPackage 2, pytest 3, pytestcov 4, sybil 5, typing-extensions 6}: 7 8buildPythonPackage rec { 9 pname = "atpublic"; 10 version = "2.1.3"; 11 disabled = !isPy3k; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "e0b274759bfbcb6eeb7c7b44a7a46391990a43ac77aa55359b075765b54d9f5d"; 16 }; 17 18 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ 19 typing-extensions 20 ]; 21 22 checkInputs = [ 23 pytest pytestcov sybil 24 ]; 25 26 checkPhase = '' 27 pytest 28 ''; 29 30 meta = with lib; { 31 homepage = "https://public.readthedocs.io/en/latest/"; 32 description = "A decorator and function which populates a module's __all__ and globals"; 33 longDescription = '' 34 This is a very simple decorator and function which populates a module's 35 __all__ and optionally the module globals. 36 37 This provides both a pure-Python implementation and a C implementation. It is 38 proposed that the C implementation be added to builtins_ for Python 3.6. 39 40 This proposal seems to have been rejected, for more information see 41 https://bugs.python.org/issue26632. 42 ''; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ eadwu ]; 45 }; 46}