depot/third_party/nixpkgs/pkgs/development/python-modules/pure-protobuf/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

48 lines
966 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools-scm
, toml
, pytestCheckHook
, pytest-benchmark
, hatch-vcs
, hatchling
}:
buildPythonPackage rec {
pname = "pure-protobuf";
version = "3.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "eigenein";
repo = "protobuf";
rev = "refs/tags/${version}";
hash = "sha256-MjxJTX672LSEqZkH39vTD/+IhCTp6FL2z15S7Lxj6Dc=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
checkInputs = [
pytestCheckHook
pytest-benchmark
];
pythonImportsCheck = [
"pure_protobuf"
];
meta = with lib; {
description = "Python implementation of Protocol Buffers with dataclass-based schemas";
homepage = "https://github.com/eigenein/protobuf";
changelog = "https://github.com/eigenein/protobuf/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ chuangzhu ];
};
}