mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Merge pull request #352 from nix-community/overrideable-poetry-deps
Expose projectDir/pyproject/poetrylock parameters in the Poetry derivation
This commit is contained in:
commit
ca83399c47
3 changed files with 17 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell ./shell.nix -i bash
|
||||
#!nix-shell ./check-fmt.nix -i bash
|
||||
#
|
||||
# Just because the nixpkgs-fmt error message is not super readable. Used by
|
||||
# CI.
|
||||
|
|
7
check-fmt.nix
Normal file
7
check-fmt.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
let
|
||||
sources = import ./nix/sources.nix;
|
||||
pkgs = import sources.nixpkgs { };
|
||||
in
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = [ pkgs.nixpkgs-fmt ];
|
||||
}
|
|
@ -1,11 +1,18 @@
|
|||
{ lib, poetry2nix, python, fetchFromGitHub }:
|
||||
{ lib
|
||||
, poetry2nix
|
||||
, python
|
||||
, fetchFromGitHub
|
||||
, projectDir ? ./.
|
||||
, pyproject ? projectDir + "/pyproject.toml"
|
||||
, poetrylock ? projectDir + "/poetry.lock"
|
||||
}:
|
||||
|
||||
|
||||
poetry2nix.mkPoetryApplication {
|
||||
|
||||
inherit python;
|
||||
|
||||
projectDir = ./.;
|
||||
inherit projectDir pyproject poetrylock;
|
||||
|
||||
# Don't include poetry in inputs
|
||||
__isBootstrap = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue