Files
nixpkgs/pkgs/development/python-modules/flow-record/default.nix
T
Martin Weinelt 8056f9250c treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

78 lines
1.4 KiB
Nix

{ lib
, buildPythonPackage
, elasticsearch
, fastavro
, fetchFromGitHub
, lz4
, msgpack
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
, wheel
, zstandard
}:
buildPythonPackage rec {
pname = "flow-record";
version = "3.13";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fox-it";
repo = "flow.record";
rev = "refs/tags/${version}";
hash = "sha256-Yg42nA0dRjHormpmpbOuZYuvBpNz9XEpf84XI2iJpYY=";
};
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 ];
};
}