depot/third_party/nixpkgs/pkgs/development/python-modules/pyais/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

49 lines
1,012 B
Nix

{
lib,
attrs,
bitarray,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyais";
version = "2.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "M0r13n";
repo = "pyais";
rev = "refs/tags/v${version}";
hash = "sha256-6Bv0YE2zQv0mdXNzHkhq4sOJ18nmyxO884Smzwn2c8I=";
};
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/${version}/CHANGELOG.txt";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}