diff options
Diffstat (limited to 'pkgs/development/python-modules/fastavro/default.nix')
-rw-r--r-- | pkgs/development/python-modules/fastavro/default.nix | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/fastavro/default.nix b/pkgs/development/python-modules/fastavro/default.nix index fed754d72945..16ede5ab211e 100644 --- a/pkgs/development/python-modules/fastavro/default.nix +++ b/pkgs/development/python-modules/fastavro/default.nix @@ -1,23 +1,25 @@ -{ buildPythonPackage -, cython -, fetchFromGitHub -, isPy38 -, lib -, lz4 -, numpy -, pandas -, pytestCheckHook -, python-dateutil -, python-snappy -, pythonOlder -, zlib-ng -, zstandard +{ + buildPythonPackage, + cython, + fetchFromGitHub, + isPy38, + lib, + lz4, + numpy, + pandas, + pytestCheckHook, + python-dateutil, + cramjam, + pythonOlder, + setuptools, + zlib-ng, + zstandard, }: buildPythonPackage rec { pname = "fastavro"; - version = "1.9.4"; - format = "setuptools"; + version = "1.9.7"; + pyproject = true; disabled = pythonOlder "3.6"; @@ -25,30 +27,27 @@ buildPythonPackage rec { owner = pname; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-UWvNEi6vzQknUws+b7UCFUajMUJkfnQkfBeCR0XfqQY="; + hash = "sha256-hKhwQqNJ+QvYf4x9FesNOPg36m8zC6D6dmlhANXCcsk="; }; preBuild = '' export FASTAVRO_USE_CYTHON=1 ''; - nativeBuildInputs = [ cython ]; + build-system = [ + cython + setuptools + ]; - passthru.optional-dependencies = { + optional-dependencies = { codecs = [ + cramjam lz4 - python-snappy zstandard ]; - snappy = [ - python-snappy - ]; - zstandard = [ - zstandard - ]; - lz4 = [ - lz4 - ]; + snappy = [ cramjam ]; + zstandard = [ zstandard ]; + lz4 = [ lz4 ]; }; nativeCheckInputs = [ @@ -57,7 +56,7 @@ buildPythonPackage rec { pytestCheckHook python-dateutil zlib-ng - ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (lib.attrValues optional-dependencies); # Fails with "AttributeError: module 'fastavro._read_py' has no attribute # 'CYTHON_MODULE'." Doesn't appear to be serious. See https://github.com/fastavro/fastavro/issues/112#issuecomment-387638676. |