gnu: python-tlsh: Update to 4.11.2.
* gnu/packages/python-xyz.scm (python-tlsh): Update to 4.11.2. [source](uri): Remove "v" prefix from version. [arguments]: Add custom check phase. Use G-expression. [inputs]: Remove label.
This commit is contained in:
parent
0a9d99bc8c
commit
e3fc94576e
@ -12455,32 +12455,41 @@ $ rm -rf /tmp/env
|
|||||||
(define-public python-tlsh
|
(define-public python-tlsh
|
||||||
(package
|
(package
|
||||||
(name "python-tlsh")
|
(name "python-tlsh")
|
||||||
(version "3.4.5")
|
(version "4.11.2")
|
||||||
(home-page "https://github.com/trendmicro/tlsh")
|
(home-page "https://github.com/trendmicro/tlsh")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference (url home-page) (commit version)))
|
||||||
(url "https://github.com/trendmicro/tlsh")
|
|
||||||
(commit (string-append "v" version))))
|
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll"))))
|
(base32 "1gb5j73nw3nmx030rf8pm75rns5syxhv44zxr6i74kjicyly1i9w"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:out-of-source? #f
|
(list #:out-of-source? #f
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases
|
||||||
(replace
|
#~(modify-phases %standard-phases
|
||||||
'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
;; Build and install the Python bindings. The underlying
|
;; Build and install the Python bindings. The underlying
|
||||||
;; C++ library is apparently not meant to be installed.
|
;; C++ library is apparently not meant to be installed.
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(with-directory-excursion "py_ext"
|
||||||
(with-directory-excursion "py_ext"
|
(and (system* "python" "setup.py" "build")
|
||||||
(and (system* "python" "setup.py" "build")
|
(system* "python" "setup.py" "install"
|
||||||
(system* "python" "setup.py" "install"
|
(string-append "--prefix=" #$output))))))
|
||||||
(string-append "--prefix=" out))))))))))
|
;; Delay tests until the phase above has run.
|
||||||
(inputs `(("python" ,python-wrapper))) ;for the bindings
|
(delete 'check)
|
||||||
|
(add-after 'install 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(substitute* "Testing/python_test.sh"
|
||||||
|
;; The script sets up a working PYTHONPATH, but does not
|
||||||
|
;; export it for all subsequent test commands. Fix that.
|
||||||
|
(("^PYTHONPATH=\".*" all)
|
||||||
|
(string-append all "\nexport PYTHONPATH\n")))
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion "Testing"
|
||||||
|
(invoke "./python_test.sh"))))))))
|
||||||
|
(inputs (list python-wrapper)) ;for the bindings
|
||||||
(synopsis "Fuzzy matching library for Python")
|
(synopsis "Fuzzy matching library for Python")
|
||||||
(description
|
(description
|
||||||
"Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
|
"Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
|
||||||
|
Loading…
Reference in New Issue
Block a user