diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-28 23:40:32 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-28 23:40:32 +0100 |
commit | e74a30a73775c05df668c4e15d76800f88f3bc06 (patch) | |
tree | 5aba81e17fe56be535007bc2cc493ed3c2c1f686 | |
parent | c2706010acdbb4962e8b48a3d18c817d8447aae7 (diff) | |
download | nixlib-e74a30a73775c05df668c4e15d76800f88f3bc06.tar nixlib-e74a30a73775c05df668c4e15d76800f88f3bc06.tar.gz nixlib-e74a30a73775c05df668c4e15d76800f88f3bc06.tar.bz2 nixlib-e74a30a73775c05df668c4e15d76800f88f3bc06.tar.lz nixlib-e74a30a73775c05df668c4e15d76800f88f3bc06.tar.xz nixlib-e74a30a73775c05df668c4e15d76800f88f3bc06.tar.zst nixlib-e74a30a73775c05df668c4e15d76800f88f3bc06.zip |
python311Packages.nampa: refactor
-rw-r--r-- | pkgs/development/python-modules/nampa/default.nix | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/nampa/default.nix b/pkgs/development/python-modules/nampa/default.nix index d5d411728315..abeedb716ad5 100644 --- a/pkgs/development/python-modules/nampa/default.nix +++ b/pkgs/development/python-modules/nampa/default.nix @@ -2,41 +2,49 @@ , buildPythonPackage , fetchFromGitHub , future -, pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "nampa"; version = "1.0"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "thebabush"; - repo = pname; - rev = version; - sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a"; + repo = "nampa"; + rev = "refs/tags/${version}"; + hash = "sha256-ylDthh6fO0jKiYib0bed31Dxt4afiD0Jd5mfRKrsZpE="; }; - propagatedBuildInputs = [ - future - ]; - - nativeCheckInputs = [ - pytestCheckHook - ]; - postPatch = '' # https://github.com/thebabush/nampa/pull/13 substituteInPlace setup.py \ --replace "0.1.1" "${version}" ''; - pythonImportsCheck = [ "nampa" ]; + build-system = [ + setuptools + ]; + + dependencies = [ + future + ]; + + # Not used for binaryninja as plugin + doCheck = false; + + pythonImportsCheck = [ + "nampa" + ]; meta = with lib; { description = "Python implementation of the FLIRT technology"; - mainProgram = "dumpsig.py"; homepage = "https://github.com/thebabush/nampa"; + changelog = "https://github.com/thebabush/nampa/releases/tag/${version}"; license = licenses.lgpl3Only; maintainers = with maintainers; [ fab ]; }; |