Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hatchling missing? #605

Closed
NorfairKing opened this issue Apr 29, 2022 · 12 comments · Fixed by NixOS/nixpkgs#171941
Closed

Hatchling missing? #605

NorfairKing opened this issue Apr 29, 2022 · 12 comments · Fixed by NixOS/nixpkgs#171941

Comments

@NorfairKing
Copy link
Contributor

I see this error:

nix-shell
error: attribute 'hatchling' missing, at /nix/store/5wryb8bv33i7bn87rc41jscf2xsr5q92-poetry2nix-src/overrides/default.nix:27:71
(use '--show-trace' to show detailed location information)

This feels like an edge-case that could be documented.

@takeda
Copy link
Contributor

takeda commented May 3, 2022

@NorfairKing I believe you either need to manually update nixpkgs (hatchling was added recently). Perhaps adding hatchling as a dependency could also work, but the former way should be better.

@NorfairKing
Copy link
Contributor Author

@takeda I have upgraded nixpkgs. Is it possible that hatchling is not in the nixos-21.11 branch ?

@takeda
Copy link
Contributor

takeda commented May 3, 2022

Yeah it was added last month (I think) so I doubt it would be backported.

@NorfairKing
Copy link
Contributor Author

NorfairKing commented May 3, 2022

@takeda can you show me the PR? (I couldn't find it) Then I can ask for a backport.
It would be nice if poetry2nix would remain compatible with the most recent nixos release...

@takeda
Copy link
Contributor

takeda commented May 3, 2022

@NorfairKing It was part of this PR NixOS/nixpkgs#162538 but it had few updates since then

@patryk4815
Copy link
Contributor

Zrzut ekranu 2022-05-6 o 18 27 00
Hi. Is this issue related?

@takeda
Copy link
Contributor

takeda commented May 6, 2022

@patryk4815 it looks like it, this PR: NixOS/nixpkgs#169926 should fix it, but for now you can just add hatch-vcs as a dependency (it can be a dev dependency)

@NorfairKing
Copy link
Contributor Author

@patryk4815 Yes it is. @takeda Could this fix be backported to nixos-21.11?

@NorfairKing
Copy link
Contributor Author

Trying to do the backport here, but running into issues here: NixOS/nixpkgs#172205

@patryk4815
Copy link
Contributor

patryk4815 commented May 9, 2022

@NorfairKing for me works hatch-vcs 0.0.1

[tool.poetry.dev-dependencies]
hatch-vcs = "^0.0.1"

@l0b0
Copy link
Contributor

l0b0 commented May 10, 2022

Thank you for the tip, @patryk4815! I got soupsieve to build with hatch-vcs = "*" and

soupsieve = super.soupsieve.overridePythonAttrs (
  old: {
    buildInputs = (old.buildInputs or [ ]) ++ [
      self.hatch-vcs
    ];
  }
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants