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