Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 681 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, isPy27 6, enum34 7, attrs 8, pytz 9}: 10 11buildPythonPackage rec { 12 pname = "serpent"; 13 version = "1.30.2"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "72753820246a7d8486e8b385353e3bbf769abfceec2e850fa527a288b084ff7a"; 18 }; 19 20 propagatedBuildInputs = lib.optionals isPy27 [ enum34 ]; 21 22 checkInputs = [ attrs pytz ]; 23 checkPhase = '' 24 ${python.interpreter} setup.py test 25 ''; 26 27 meta = with lib; { 28 description = "A simple serialization library based on ast.literal_eval"; 29 homepage = "https://github.com/irmen/Serpent"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ prusnak ]; 32 }; 33}