set pyproject = true
This commit is contained in:
parent
84fb83a076
commit
2e5358c65e
@ -2,7 +2,7 @@
|
|||||||
python3Packages,
|
python3Packages,
|
||||||
gallery-dl,
|
gallery-dl,
|
||||||
ffmpeg,
|
ffmpeg,
|
||||||
pkgs,
|
callPackage,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -11,16 +11,21 @@ let
|
|||||||
in
|
in
|
||||||
python3Packages.buildPythonApplication {
|
python3Packages.buildPythonApplication {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
path = ../../scripts/download/.;
|
path = ../../scripts/download/.;
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
build-system = [ python3Packages.setuptools ];
|
build-system = [ python3Packages.setuptools ];
|
||||||
|
|
||||||
dependencies =
|
dependencies =
|
||||||
[
|
[
|
||||||
ffmpeg
|
ffmpeg
|
||||||
gallery-dl
|
gallery-dl
|
||||||
(pkgs.callPackage ../../pkgs/webcomix/default.nix { })
|
(callPackage ../../pkgs/webcomix/default.nix { })
|
||||||
]
|
]
|
||||||
++ builtins.attrValues {
|
++ builtins.attrValues {
|
||||||
inherit (python3Packages)
|
inherit (python3Packages)
|
||||||
@ -29,5 +34,4 @@ python3Packages.buildPythonApplication {
|
|||||||
yt-dlp
|
yt-dlp
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,12 +15,14 @@ python3Packages.buildPythonApplication rec {
|
|||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-Y16+/9TnECMkppgI/BeAbTLWt0M4V/xn1+hM4ILp/+g=";
|
hash = "sha256-Y16+/9TnECMkppgI/BeAbTLWt0M4V/xn1+hM4ILp/+g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace-fail "poetry>=1.2.0" poetry-core \
|
--replace-fail "poetry>=1.2.0" poetry-core \
|
||||||
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \
|
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \
|
||||||
--replace-fail 'pytest-rerunfailures = "^11.1.2"' 'pytest-rerunfailures = "14.0"'
|
--replace-fail 'pytest-rerunfailures = "^11.1.2"' 'pytest-rerunfailures = "14.0"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
python3Packages.poetry-core
|
python3Packages.poetry-core
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user