trueseeing: refactor

This commit is contained in:
Fabian Affolter 2024-01-01 11:45:29 +01:00 committed by GitHub
parent 4b0b110a09
commit 46139347fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,15 +6,20 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "trueseeing"; pname = "trueseeing";
version = "2.1.9"; version = "2.1.9";
format = "pyproject"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alterakey"; owner = "alterakey";
repo = pname; repo = "trueseeing";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-g5OqdnPtGGV4wBwPRAjH3lweguwlfVcgpNLlq54OHKA="; hash = "sha256-g5OqdnPtGGV4wBwPRAjH3lweguwlfVcgpNLlq54OHKA=";
}; };
postPatch = ''
substituteInPlace pyproject.toml \
--replace "attrs~=21.4" "attrs>=21.4"
'';
nativeBuildInputs = with python3.pkgs; [ nativeBuildInputs = with python3.pkgs; [
flit-core flit-core
]; ];
@ -26,15 +31,8 @@ python3.pkgs.buildPythonApplication rec {
lxml lxml
pypubsub pypubsub
pyyaml pyyaml
docker
]; ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "attrs~=21.4" "attrs>=21.4" \
--replace "docker~=5.0.3" "docker"
'';
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;