poetry2nix/tests/rpds-py-wheel/default.nix

35 lines
916 B
Nix
Raw Normal View History

{ poetry2nix, python3, pkgs }:
let
inherit (pkgs.stdenv) isLinux;
env = poetry2nix.mkPoetryEnv {
python = python3;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
preferWheels = false;
overrides = poetry2nix.overrides.withDefaults (
_: super: {
rpds-py = super.rpds-py.override {
preferWheel = isLinux;
};
2023-07-16 08:57:49 -04:00
2023-07-16 08:50:49 -04:00
referencing = super.referencing.override {
preferWheel = isLinux;
};
2023-07-16 08:57:49 -04:00
jsonschema-specifications = super.jsonschema-specifications.override {
preferWheel = isLinux;
};
2023-07-16 08:57:49 -04:00
jsonschema = super.jsonschema.override {
preferWheel = isLinux;
};
}
);
};
in
assert isLinux ->
env.python.pkgs.rpds-py.src.isWheel
&& env.python.pkgs.referencing.src.isWheel
2023-07-16 08:57:49 -04:00
&& env.python.pkgs.jsonschema-specifications.src.isWheel
&& env.python.pkgs.jsonschema.src.isWheel; env