Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 79 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, elasticsearch, fastavro, fetchFromGitHub, lz4, msgpack, pytestCheckHook, pythonOlder, setuptools, setuptools-scm, wheel, zstandard}:
buildPythonPackage rec { pname = "flow-record"; version = "3.10"; format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "fox-it"; repo = "flow.record"; rev = "refs/tags/${version}"; hash = "sha256-pOEK53+rIwzTxDEla1xoWo/xgy+eN0nxR0MeW7VQFds="; };
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ setuptools setuptools-scm wheel ];
propagatedBuildInputs = [ msgpack ];
passthru.optional-dependencies = { compression = [ lz4 zstandard ]; elastic = [ elasticsearch ]; avro = [ fastavro ] ++ fastavro.optional-dependencies.snappy; };
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "flow.record" ];
disabledTestPaths = [ # Test requires rdump "tests/test_rdump.py" ];
disabledTests = [ "test_rdump_fieldtype_path_json" ];
meta = with lib; { description = "Library for defining and creating structured data"; homepage = "https://github.com/fox-it/flow.record"; changelog = "https://github.com/fox-it/flow.record/releases/tag/${version}"; license = licenses.agpl3Only; maintainers = with maintainers; [ fab ]; };}