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