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