depot/third_party/nixpkgs/pkgs/development/python-modules/avro3k/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
718 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy3k,
}:
buildPythonPackage rec {
pname = "avro3k";
version = "1.7.7-SNAPSHOT";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "15ahl0irwwj558s964abdxg4vp6iwlabri7klsm2am6q5r0ngsky";
};
# setuptools.extern.packaging.version.InvalidVersion: Invalid version: '1.7.7-SNAPSHOT'
postPatch = ''
substituteInPlace setup.py \
--replace "1.7.7-SNAPSHOT" "1.7.7"
'';
doCheck = false; # No such file or directory: './run_tests.py
meta = with lib; {
description = "Serialization and RPC framework";
mainProgram = "avro";
homepage = "https://pypi.python.org/pypi/avro3k/";
};
}