gnu: python-apsw: Use invoke.
* gnu/packages/databases.scm (python-apsw)[arguments]: Use invoke.
This commit is contained in:
		
							parent
							
								
									f5c847ebd0
								
							
						
					
					
						commit
						c553b08b49
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		|  | @ -2291,25 +2291,25 @@ PickleShare.") | ||||||
|            "00ai7m2pqi26qaflhz314d8k5i3syw7xzr145fhfl0crhyh6adz2")))) |            "00ai7m2pqi26qaflhz314d8k5i3syw7xzr145fhfl0crhyh6adz2")))) | ||||||
|     (build-system python-build-system) |     (build-system python-build-system) | ||||||
|     (inputs |     (inputs | ||||||
|       `(("sqlite" ,sqlite))) |      `(("sqlite" ,sqlite))) | ||||||
|     (arguments |     (arguments | ||||||
|      `(#:phases |      `(#:phases | ||||||
|        (modify-phases %standard-phases |        (modify-phases %standard-phases | ||||||
|          (replace 'build |          (replace 'build | ||||||
|            (lambda _ |            (lambda _ | ||||||
|              (zero? |              (invoke "python" "setup.py" "build" "--enable-all-extensions") | ||||||
|               (system* "python" "setup.py" "build" "--enable-all-extensions")))) |              #t)) | ||||||
|          (add-after 'build 'build-test-helper |          (add-after 'build 'build-test-helper | ||||||
|            (lambda _ |            (lambda _ | ||||||
|              (zero? |              (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext" | ||||||
|               (system |                      "-I." "-Isqlite3" "src/testextension.c") | ||||||
|                (string-append "gcc -fPIC -shared -o ./testextension.sqlext " |              #t)) | ||||||
|                               "-I. -Isqlite3 src/testextension.c") )))) |  | ||||||
|          (delete 'check) |          (delete 'check) | ||||||
|          (add-after 'install 'check |          (add-after 'install 'check | ||||||
|            (lambda* (#:key inputs outputs #:allow-other-keys) |            (lambda* (#:key inputs outputs #:allow-other-keys) | ||||||
|              (add-installed-pythonpath inputs outputs) |              (add-installed-pythonpath inputs outputs) | ||||||
|              (zero? (system* "python" "setup.py" "test"))))))) |              (invoke "python" "setup.py" "test") | ||||||
|  |              #t))))) | ||||||
|     (home-page "https://github.com/rogerbinns/apsw/") |     (home-page "https://github.com/rogerbinns/apsw/") | ||||||
|     (synopsis "Another Python SQLite Wrapper") |     (synopsis "Another Python SQLite Wrapper") | ||||||
|     (description "APSW is a Python wrapper for the SQLite |     (description "APSW is a Python wrapper for the SQLite | ||||||
|  |  | ||||||
		Reference in a new issue