2025-07-13 03:48:03 +00:00

50 lines
1003 B
Nix

{
lib,
attrs,
bitarray,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyais";
version = "2.12.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "M0r13n";
repo = "pyais";
tag = "v${version}";
hash = "sha256-83JZ8OWbk6vwcbB6JFwHNNuvbq1n/4YHi1FhG+FIts8=";
};
build-system = [ setuptools ];
dependencies = [
attrs
bitarray
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyais" ];
disabledTestPaths = [
# Tests the examples which have additional requirements
"tests/test_examples.py"
];
meta = with lib; {
description = "Module for decoding and encoding AIS messages (AIVDM/AIVDO)";
homepage = "https://github.com/M0r13n/pyais";
changelog = "https://github.com/M0r13n/pyais/blob/${src.tag}/CHANGELOG.txt";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}