2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrs,
|
|
|
|
bitarray,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyais";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.7.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "M0r13n";
|
|
|
|
repo = "pyais";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-itv5tVM8ff2gNUDGxY4aMKrpJVgfwPB/FWYog+CzJY4=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
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/${version}/CHANGELOG.txt";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|