Poetry2nix | 322 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 19 Nov 2023 | ||
| 20:38:41 | ||
| How can I get dbus-python to build? | 21:59:31 | |
| 21:59:47 | |
| 20 Nov 2023 | ||
| looks like maybe a missing build-time dependency? https://github.com/nix-community/poetry2nix/blob/master/docs/edgecases.md#modulenotfounderror-no-module-named-packagename | 07:20:57 | |
| Hello! I'm having some odd problems with the cattrs package. To reproduce, I use `nix flake init --template github:nix-community/poetry2nix`, then `poetry add cattrs`. When I build, I get the `No module named 'hatchling'` error, so I add an override for cattrs with the hatchling package. When I try to build after this, I get this error: ``` hatchling.plugin.exceptions.UnknownPluginError: Unknown version source: vcs error: subprocess-exited-with-error ``` Have anyone had this, or a similar, issue before? | 17:44:00 | |
You need to also add hatch-vcs | 17:46:44 | |
| Probably | 17:46:45 | |
In reply to @gaivs:matrix.orgadd hatch-vcs to the override as well | 17:46:49 | |
| Perfect, thank you! | 17:48:11 | |
| 22:40:45 | ||
| It seems to me that poetry2nix doesn't properly support scripts at the top level? I'm wondering if that's known/reported/irrelevant/a bad idea/… Say I've got a project set up like this:
Then I can execute
and it'll print
That fails with | 23:23:11 | |
| 21 Nov 2023 | ||
| Looked around a bit in the source to find out what controls which .py files are included. Found mkPoetryScriptsPackage. Works as expected. :) | 06:55:03 | |
Or maybe it doesn't. Tried to apply mkPoetryScriptsPackage to a real thing, which needs overrides, which isn't supported. I also can't seem to mix scripts inside and outside of the package folder. :/ | 23:51:53 | |
| 22 Nov 2023 | ||
is it just me or does mkPoetryScriptsPackage not add the dependencies to the PYTHONPATH or whatever it's called | 00:53:04 | |
| mkPoetryApplication works but the binary in mkPoetryScriptsPackage with "No module named 'requests'" | 00:53:34 | |
I'm in the midst of fixing the "fallout" from removal of poetry2nix from nixpkgs for my xls2latex package, but I'm getting a bit confused (partly because of multi-layered flakes/shells). So now I have this flake, aiming to achieve the "sweet spot" of being compatible with non-flake usage (fetchFromGithub) and having the necessary flake outputs to do seamless development on it (repo devShell) and inclusion in user deployments, preferrably via overlay so the user can call it as a normal pkgs.xls2latex.Now I'm looking for advice:
| 14:32:25 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } error: function 'anonymous lambda' called without required argument 'lib' | 14:36:49 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } | 14:37:01 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } `but I get an error: | 14:37:22 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } `but I get an error: | 14:37:32 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } `but I get an error: | 14:37:57 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:38:30 | |
In a consumer of the mentioned flake:`{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:38:41 | |
In a consumer of the mentioned flake:`{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:39:04 | |
In a consumer of the mentioned flake: | 14:39:36 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:40:24 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; ... outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:41:02 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; ... outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:41:17 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; ... outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:41:30 | |
In a consumer of the mentioned flake: | 14:41:50 | |