mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00

Provides a `select` function that picks the most appropriate `.whl` file based on platform, arch, python version and manylinux/OSX - version. - Adds unit tests for pep425 - Adds test for manylinux support - Fixes overrides: `passhtru` must be extended, not overwritten - Don't strip python packages: this screws up manylinux binaries
18 lines
851 B
Nix
18 lines
851 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
let
|
|
poetry = pkgs.callPackage ../pkgs/poetry { python = pkgs.python3; inherit poetry2nix; };
|
|
poetry2nix = import ./.. { inherit pkgs; inherit poetry; };
|
|
|
|
pep425 = pkgs.callPackage ../pep425.nix {};
|
|
pep425Python37 = pkgs.callPackage ../pep425.nix { python = pkgs.python37; };
|
|
pep425OSX = pkgs.callPackage ../pep425.nix { isLinux = false; };
|
|
|
|
in
|
|
{
|
|
trivial = pkgs.callPackage ./trivial { inherit poetry2nix; };
|
|
override = pkgs.callPackage ./override-support { inherit poetry2nix; };
|
|
top-packages-1 = pkgs.callPackage ./common-pkgs-1 { inherit poetry2nix; };
|
|
top-packages-2 = pkgs.callPackage ./common-pkgs-2 { inherit poetry2nix; };
|
|
pep425 = pkgs.callPackage ./pep425 { inherit pep425; inherit pep425OSX; inherit pep425Python37; };
|
|
manylinux = pkgs.callPackage ./manylinux { inherit poetry2nix; };
|
|
}
|