Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / keystone-engine / default.nix
blob7c3cf2e70d8386941b4fa01c358333723a054d24
1 { lib, stdenv, buildPythonPackage, fetchPypi, keystone }:
3 buildPythonPackage rec {
4   pname = "keystone-engine";
5   version = "0.9.2";
7   src = fetchPypi {
8    inherit pname version;
9    sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
10   };
12   setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
14   preConfigure = ''
15     substituteInPlace setup.py --replace \
16       "libkeystone" "${keystone}/lib/libkeystone"
17   '';
19   # No tests
20   doCheck = false;
22   pythonImportsCheck = [ "keystone" ];
24   meta = with lib; {
25     description = "Lightweight multi-platform, multi-architecture assembler framework";
26     homepage = "https://www.keystone-engine.org";
27     maintainers = with maintainers; [ dump_stack ];
28     license = licenses.gpl2Only;
29   };