M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +4 -8
@@ 31828,22 31828,18 @@ we can stop writing custom parsers for syslog-type records.")
(name "python-unique-log-filter")
(version "0.1.0")
(source
- ;; The version on pypi does not include test files.
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/twizmwazin/unique_log_filter")
- (commit (string-append "v" version))))
+ (url "https://github.com/twizmwazin/unique_log_filter")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "036mh6nqskck2fa1q2inasqxb9wcz2p09qcpldnnffzcy1a6kzba"))))
(build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "test_unique_log_filter.py")))))))
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "test_unique_log_filter.py")))
(native-inputs (list python-flit-core))
(home-page "https://github.com/twizmwazin/unique_log_filter")
(synopsis "Log filter that removes duplicate log messages")