1
0
Fork 0

Update Python dependencies for Nix (#12855)

Co-authored-by: Steve Purcell <steve@sanityinc.com>
This commit is contained in:
Sergey Vlasov 2021-06-20 16:30:16 +03:00 committed by GitHub
parent 50a312b635
commit 7ab4902543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 160 additions and 46 deletions

View file

@ -1,14 +1,16 @@
{ avr ? true, arm ? true, teensy ? true }:
let
# We specify sources via Niv: use "niv update nixpkgs" to update nixpkgs, for example.
sources = import ./nix/sources.nix {};
pkgs = import sources.nixpkgs {};
sources = import ./nix/sources.nix { };
pkgs = import sources.nixpkgs { };
poetry2nix = pkgs.callPackage (import sources.poetry2nix) { };
# Builds the python env based on nix/pyproject.toml and
# nix/poetry.lock Use the "poetry update --lock", "poetry add
# --lock" etc. in the nix folder to adjust the contents of those
# files if the requirements*.txt files change
pythonEnv = pkgs.poetry2nix.mkPoetryEnv {
pythonEnv = poetry2nix.mkPoetryEnv {
projectDir = ./nix;
};
in