mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
26 lines
667 B
Nix
26 lines
667 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "avro3k";
|
|
version = "1.7.7-SNAPSHOT";
|
|
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 = "A serialization and RPC framework";
|
|
homepage = "https://pypi.python.org/pypi/avro3k/";
|
|
};
|
|
}
|