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