mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-21 21:22:23 +03:00
Enable building python reuse from source
This commit is contained in:
parent
607c99076d
commit
e118d69b14
12
overrides/python/reuse/default.nix
Normal file
12
overrides/python/reuse/default.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
dream2nix,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
isSdist = lib.hasSuffix ".tar.gz" config.mkDerivation.src;
|
||||||
|
python = config.deps.python;
|
||||||
|
in {
|
||||||
|
buildPythonPackage.pyproject = lib.mkIf isSdist true;
|
||||||
|
mkDerivation.nativeBuildInputs = lib.mkIf isSdist [python.pkgs.poetry-core];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user