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