blob: 2070b0616cb10862db2e11c727657049a91ee313 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
attrs,
bitarray,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyais";
version = "2.6.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "M0r13n";
repo = "pyais";
rev = "refs/tags/v${version}";
hash = "sha256-/I/4ATvX/0ya8xtineXyjSFJBGhDNy/tosh2NdnKLK4=";
};
nativeBuildInputs = [ 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 ];
};
}
|