python311Packages.avro3k: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-12 03:59:21 +02:00
parent 903fa55418
commit 445bbd6b04

View File

@ -2,13 +2,14 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
isPy3k,
}:
buildPythonPackage rec {
pname = "avro3k";
version = "1.7.7-SNAPSHOT";
format = "setuptools";
pyproject = true;
disabled = !isPy3k;
src = fetchPypi {
@ -19,9 +20,11 @@ buildPythonPackage rec {
# setuptools.extern.packaging.version.InvalidVersion: Invalid version: '1.7.7-SNAPSHOT'
postPatch = ''
substituteInPlace setup.py \
--replace "1.7.7-SNAPSHOT" "1.7.7"
--replace-fail "1.7.7-SNAPSHOT" "1.7.7"
'';
build-system = [ setuptools ];
doCheck = false; # No such file or directory: './run_tests.py
meta = with lib; {