mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
c3d845ba7b
Diff: https://github.com/M0r13n/pyais/compare/refs/tags/v2.8.1...v2.8.2 Changelog: https://github.com/M0r13n/pyais/blob/v2.8.2/CHANGELOG.txt
50 lines
1013 B
Nix
50 lines
1013 B
Nix
{
|
|
lib,
|
|
attrs,
|
|
bitarray,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyais";
|
|
version = "2.8.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "M0r13n";
|
|
repo = "pyais";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-G3P1ijwOmd1UFIRXC8qPG93gtWJt+EclzO7wjtvj6tk=";
|
|
};
|
|
|
|
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/v${version}/CHANGELOG.txt";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|