Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 future, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "nampa"; 12 version = "1.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "thebabush"; 19 repo = "nampa"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-ylDthh6fO0jKiYib0bed31Dxt4afiD0Jd5mfRKrsZpE="; 22 }; 23 24 postPatch = '' 25 # https://github.com/thebabush/nampa/pull/13 26 substituteInPlace setup.py \ 27 --replace "0.1.1" "${version}" 28 ''; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ future ]; 33 34 # Not used for binaryninja as plugin 35 doCheck = false; 36 37 pythonImportsCheck = [ "nampa" ]; 38 39 meta = with lib; { 40 description = "Python implementation of the FLIRT technology"; 41 homepage = "https://github.com/thebabush/nampa"; 42 changelog = "https://github.com/thebabush/nampa/releases/tag/${version}"; 43 license = licenses.lgpl3Only; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}