mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
python311Packages.avro3k: modernize
This commit is contained in:
parent
903fa55418
commit
445bbd6b04
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user