writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / keystone-engine / default.nix
blob4e526346dced92fd4a54b740e4b36f0c9c83f337
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchPypi,
6   keystone,
7 }:
9 buildPythonPackage rec {
10   pname = "keystone-engine";
11   version = "0.9.2";
12   format = "setuptools";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
17   };
19   setupPyBuildFlags = lib.optionals stdenv.hostPlatform.isLinux [
20     "--plat-name"
21     "linux"
22   ];
24   preConfigure = ''
25     substituteInPlace setup.py --replace \
26       "libkeystone" "${keystone}/lib/libkeystone"
27   '';
29   # No tests
30   doCheck = false;
32   pythonImportsCheck = [ "keystone" ];
34   meta = with lib; {
35     description = "Lightweight multi-platform, multi-architecture assembler framework";
36     homepage = "https://www.keystone-engine.org";
37     maintainers = with maintainers; [ dump_stack ];
38     license = licenses.gpl2Only;
39   };