2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools-scm
|
|
|
|
, toml
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-benchmark
|
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pure-protobuf";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.0.0";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eigenein";
|
|
|
|
repo = "protobuf";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-MjxJTX672LSEqZkH39vTD/+IhCTp6FL2z15S7Lxj6Dc=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/eigenein/protobuf/releases/tag/${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ chuangzhu ];
|
|
|
|
};
|
|
|
|
}
|