Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 855 B view raw
1{ stdenv, buildPythonPackage, isPy3k, fetchPypi, pycodestyle, isort }: 2 3buildPythonPackage rec { 4 pname = "avro"; 5 version = "1.10.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "bbf9f89fd20b4cf3156f10ec9fbce83579ece3e0403546c305957f9dac0d2f03"; 10 }; 11 12 patchPhase = '' 13 # this test requires network access 14 sed -i 's/test_server_with_path/noop/' avro/test/test_ipc.py 15 '' + (stdenv.lib.optionalString isPy3k '' 16 # these files require twisted, which is not python3 compatible 17 rm avro/txipc.py 18 rm avro/test/txsample* 19 ''); 20 21 nativeBuildInputs = [ pycodestyle ]; 22 propagatedBuildInputs = [ isort ]; 23 24 meta = with stdenv.lib; { 25 description = "A serialization and RPC framework"; 26 homepage = "https://pypi.python.org/pypi/avro/"; 27 license = licenses.asl20; 28 maintainers = [ maintainers.zimbatm ]; 29 }; 30}