1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, six
7}:
8
9buildPythonPackage rec {
10 pname = "libais";
11 version = "0.17";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-6yrqIpjF6XaSfXSOTA0B4f3aLcHXkgA/3WBZBBNQ018=";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace "'pytest-runner'," ""
24 '';
25
26 propagatedBuildInputs = [
27 six
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 # data files missing
35 doCheck = false;
36
37 pythonImportsCheck = [
38 "ais"
39 ];
40
41 meta = with lib; {
42 description = "Library for decoding maritime Automatic Identification System messages";
43 homepage = "https://github.com/schwehr/libais";
44 changelog = "https://github.com/schwehr/libais/blob/master/Changelog.md";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ ];
47 platforms = platforms.unix;
48 };
49}