Merge pull request #271567 from SuperSandro2000/betterproto
python311Packages.betterproto: 2.0.0b5 -> 2.0.0b6
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
, jinja2
|
, jinja2
|
||||||
, isort
|
, isort
|
||||||
, python
|
, python
|
||||||
|
, pydantic
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
@@ -18,15 +19,15 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "betterproto";
|
pname = "betterproto";
|
||||||
version = "2.0.0b5";
|
version = "2.0.0b6";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "danielgtaylor";
|
owner = "danielgtaylor";
|
||||||
repo = "python-betterproto";
|
repo = "python-betterproto";
|
||||||
rev = "v${version}";
|
rev = "v.${version}";
|
||||||
hash = "sha256-XyXdpo3Yo4aO1favMWC7i9utz4fNDbKbsnYXJW0b7Gc=";
|
hash = "sha256-ZuVq4WERXsRFUPNNTNp/eisWX1MyI7UtwqEI8X93wYI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ poetry-core ];
|
nativeBuildInputs = [ poetry-core ];
|
||||||
@@ -45,6 +46,7 @@ buildPythonPackage rec {
|
|||||||
pythonImportsCheck = [ "betterproto" ];
|
pythonImportsCheck = [ "betterproto" ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
pydantic
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-mock
|
pytest-mock
|
||||||
@@ -56,6 +58,7 @@ buildPythonPackage rec {
|
|||||||
# the protoc-gen-python_betterproto script from the package to be on PATH.
|
# the protoc-gen-python_betterproto script from the package to be on PATH.
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export PATH=$PATH:$out/bin
|
export PATH=$PATH:$out/bin
|
||||||
|
patchShebangs src/betterproto/plugin/main.py
|
||||||
${python.interpreter} -m tests.generate
|
${python.interpreter} -m tests.generate
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user