25 lines
561 B
Nix
25 lines
561 B
Nix
|
{ pkgs ? import <nixpkgs> { }, ... }:
|
||
|
|
||
|
let
|
||
|
mkSetup = self: super: pkg: super.${pkg}.overridePythonAttrs (old: { buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools ]; });
|
||
|
|
||
|
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
|
||
|
projectDir = ./.;
|
||
|
python = pkgs.python39;
|
||
|
preferWheels = true;
|
||
|
|
||
|
overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: {
|
||
|
python-ldap = mkSetup self super "python-ldap";
|
||
|
|
||
|
authens = mkSetup self super "authens";
|
||
|
});
|
||
|
};
|
||
|
in
|
||
|
|
||
|
pkgs.mkShell {
|
||
|
buildInputs = [
|
||
|
pkgs.poetry
|
||
|
poetryEnv
|
||
|
];
|
||
|
}
|