summary refs log tree commit diff
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2017-02-27 16:34:34 +0100
committerLancelot SIX <lsix@lancelotsix.com>2017-02-28 16:41:54 +0100
commita9d404c616f4cb879d3b58a094965a3cef660b5f (patch)
treeca1b25feab7118e1eb133d0bd62537193dfc9fb5
parent6f3e0717555bff03321a1751b5eed4eb4d3d4465 (diff)
downloadnixlib-a9d404c616f4cb879d3b58a094965a3cef660b5f.tar
nixlib-a9d404c616f4cb879d3b58a094965a3cef660b5f.tar.gz
nixlib-a9d404c616f4cb879d3b58a094965a3cef660b5f.tar.bz2
nixlib-a9d404c616f4cb879d3b58a094965a3cef660b5f.tar.lz
nixlib-a9d404c616f4cb879d3b58a094965a3cef660b5f.tar.xz
nixlib-a9d404c616f4cb879d3b58a094965a3cef660b5f.tar.zst
nixlib-a9d404c616f4cb879d3b58a094965a3cef660b5f.zip
pythonPackages.libais: init at 0.16
-rw-r--r--pkgs/development/python-modules/libais/default.nix25
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/libais/default.nix b/pkgs/development/python-modules/libais/default.nix
new file mode 100644
index 000000000000..85b5d92e79f4
--- /dev/null
+++ b/pkgs/development/python-modules/libais/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, buildPythonPackage, fetchurl,
+  six, pytest, pytestrunner, pytestcov, coverage
+}:
+buildPythonPackage rec {
+  name = "libais-${version}";
+  version = "0.16";
+
+  src = fetchurl {
+    url = "mirror://pypi/l/libais/${name}.tar.bz2";
+    sha256 = "14dsh5k32ryszwdn6p45wrqp4ska6cc9qpm6lk5c5d1p4rc7wnhq";
+  };
+
+  # data files missing
+  doCheck = false;
+
+  buildInputs = [ pytest pytestrunner pytestcov coverage ];
+  propagatedBuildInputs = [ six ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/schwehr/libais;
+    description = "Library for decoding maritime Automatic Identification System messages";
+    license = licenses.asl20;
+    platforms = platforms.linux;  # It currently fails to build on darwin
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index e8205cb41d2e..9208a2ad8a50 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5678,6 +5678,8 @@ in {
 
   leather = callPackage ../development/python-modules/leather { };
 
+  libais = callPackage ../development/python-modules/libais { };
+
   libtmux = buildPythonPackage rec {
     name = "libtmux-${version}";
     version = "0.6.0";