Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, poetry-core, poetry-dynamic-versioning, typing-extensions, pytestCheckHook, pytest-benchmark, pytest-cov, pydantic,}:
buildPythonPackage rec { pname = "pure-protobuf"; version = "3.1.0";
format = "pyproject"; # < 3.10 requires get-annotations which isn't packaged yet disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "eigenein"; repo = "protobuf"; rev = "refs/tags/${version}"; hash = "sha256-JXC68iEX5VepIe4qpugvY0Qb3JlM5mPGHnUVWvb1TDA="; };
build-system = [ poetry-core poetry-dynamic-versioning typing-extensions ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [ pydantic pytestCheckHook pytest-benchmark pytest-cov ];
pytestFlagsArray = [ "--benchmark-disable" ];
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 ]; };}