at 22.05-pre 838 B view raw
1{ lib, buildPythonPackage, isPy3k, fetchPypi, pycodestyle, isort }: 2 3buildPythonPackage rec { 4 pname = "avro"; 5 version = "1.10.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "381b990cc4c4444743c3297348ffd46e0c3a5d7a17e15b2f4a9042f6e955c31a"; 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 '' + (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 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}