@@ -1,10 +1,17 @@
1−{ lib, stdenv, buildPythonPackage, setuptools, unicorn-emu }:
1+{ lib
2+, stdenv
3+, buildPythonPackage
4+, setuptools
5+, unicorn-emu
6+}:
27
38buildPythonPackage rec {
49 pname = "unicorn";
510 version = lib.getVersion unicorn-emu;
11+ format = "setuptools";
612
713 src = unicorn-emu.src;
14+
815 sourceRoot = "source/bindings/python";
916
1017 prePatch = ''
@@ -12,12 +19,21 @@ buildPythonPackage rec {
1219 ln -s ${unicorn-emu}/lib/libunicorn.a prebuilt/
1320 '';
1421
15− propagatedBuildInputs = [ setuptools ];
22+ propagatedBuildInputs = [
23+ setuptools
24+ ];
25+
26+ # No tests present
27+ doCheck = false;
28+
29+ pythonImportsCheck = [
30+ "unicorn"
31+ ];
1632
1733 meta = with lib; {
1834 description = "Python bindings for Unicorn CPU emulator engine";
1935 homepage = "https://www.unicorn-engine.org/";
20− license = [ licenses.gpl2 ];
36+ license = licenses.gpl2Plus;
2137 maintainers = with maintainers; [ bennofs ris ];
2238 };
2339}