From 29ccfe284b90fcf9a2e502e62f6b968237ab0fb5 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 13 Dec 2022 23:00:03 +0100 Subject: [PATCH 2/4] gnu: Add python-keystone-engine. * gnu/packages/openstack.scm (python-keystone-engine): New variable. * gnu/local.mk: Add patch. * gnu/packages/patches/python-keystone-engine-dont-build-libs.patch: New file. diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 008237bd63..870a9853f3 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -885,6 +885,36 @@ (define-public python-keystoneauth1 process of writing new clients.") (license asl2.0))) +(define-public python-keystone-engine + (package + (name "python-keystone-engine") + (version "0.9.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "keystone-engine" version)) + (patches + (search-patches +"python-keystone-engine-dont-build-libs.patch" +)) + (sha256 + (base32 + "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig")))) + (build-system python-build-system) + (arguments + (list #:tests? #f ; TODO: Fails to find the shared object + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'lib-path + (lambda* _ + (substitute* "keystone/keystone.py" + ((".usr.local.lib") (string-append #$keystone "/lib"))))) + ))) + (inputs (list keystone)) + (home-page "https://www.keystone-engine.org") + (synopsis "Keystone assembler engine") + (description "Keystone assembler engine") + (license gpl2+))) + (define-public python-keystoneclient (package (name "python-keystoneclient") diff --git a/gnu/packages/patches/python-keystone-engine-dont-build-libs.patch b/gnu/packages/patches/python-keystone-engine-dont-build-libs.patch new file mode 100644 index 0000000000..04a66548ba --- /dev/null +++ b/gnu/packages/patches/python-keystone-engine-dont-build-libs.patch @@ -0,0 +1,16 @@ +--- a/setup.py 2022-11-14 14:27:56.167776515 +0100 ++++ b/setup.py 2022-11-14 14:28:53.912037545 +0100 +@@ -135,13 +135,11 @@ + class build(_build): + def run(self): + log.info("Building C++ extensions") +- build_libraries() + return _build.run(self) + + class develop(_develop): + def run(self): + log.info("Building C++ extensions") +- build_libraries() + return _develop.run(self) + + class bdist_egg(_bdist_egg): -- 2.38.1