Skip to content

Commit

Permalink
chore: add dependencies to have a better round trip
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Nov 28, 2021
1 parent bb05f78 commit 46b7222
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 23 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
}
);

nativeBuildInputs = [ pkgs.git ];

checkInputs = with pkgs; [ buf grpc protobuf ];

preCheck = ''
Expand Down
21 changes: 14 additions & 7 deletions poetry-overrides.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{ ... }:
_: super:
{ pkgs, ... }:
self: super:
{
typing-extensions = super.typing-extensions.overridePythonAttrs (
old: {
buildInputs = old.buildInputs ++ [ super.flit-core ];
}
);
typing-extensions = super.typing-extensions.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ super.flit-core ];
});

version-query = super.version-query.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.git ];
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.docutils ];
});

typed-astunparse = super.typed-astunparse.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.git ];
});
}
122 changes: 107 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ classifiers = [

[tool.poetry.dependencies]
python = ">=3.7,<3.11"
astor = "^0.8.1"
click = "^8.0.1"
protobuf = "^3.19.1"
typed-ast = "^1.4.0"
typed-astunparse = "^2.1.4"

[tool.poetry.dev-dependencies]
black = "^21.9b0"
Expand Down

0 comments on commit 46b7222

Please sign in to comment.