gnu: python-drizzle: Update package style.

* gnu/packages/astronomy.scm (python-drizzle): Update package style,
indent and align regions.
[arguments]{test-flags}: Remove them as all tests are passed
successfully.
[native-inputs]: Remove python-coverage, python-pytest-cov.
[description]: Indent region.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Sharlatan Hellseher 2023-10-09 00:40:11 +01:00 committed by Christopher Baines
parent dc77700c84
commit 5939412ab4
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -1891,47 +1891,42 @@ (define-public python-drizzle
(package (package
(name "python-drizzle") (name "python-drizzle")
(version "1.14.3") (version "1.14.3")
(source (origin (source
(method git-fetch) ;PyPi doesn't have the test data sets (origin
(uri (git-reference (method git-fetch) ;PyPi doesn't have the test data sets
(url "https://github.com/spacetelescope/drizzle") (uri (git-reference
(commit version))) (url "https://github.com/spacetelescope/drizzle")
(file-name (git-file-name name version)) (commit version)))
(sha256 (file-name (git-file-name name version))
(base32 (sha256
"04gncwg76yivcaq7rwgsw5k8w4h3c4wcrjcamb53h0d5s820z7dl")))) (base32 "04gncwg76yivcaq7rwgsw5k8w4h3c4wcrjcamb53h0d5s820z7dl"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
;; XXX: 2 of 26 tests failed with AssertionError, disable them for now. #:phases
;; Consider mention it in upstream. #~(modify-phases %standard-phases
#:test-flags #~(list "-k" (add-before 'build 'set-env-version
(string-append "not test_square_with_point" (lambda _
" and not test_square_with_grid")) (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
#:phases #~(modify-phases %standard-phases (add-before 'check 'build-extensions
(add-before 'build 'set-env-version (lambda _
(lambda _ ;; Cython extensions have to be built before running the tests.
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" (invoke "python" "setup.py" "build_ext" "--inplace"))))))
#$version))) (propagated-inputs
(add-before 'check 'build-extensions (list python-astropy python-numpy))
(lambda _ (native-inputs
;; Cython extensions have to be built before running (list python-flake8 python-pytest python-setuptools-scm))
;; the tests.
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(propagated-inputs (list python-astropy python-numpy))
(native-inputs (list python-coverage python-flake8 python-pytest
python-pytest-cov python-setuptools-scm))
(home-page "https://github.com/spacetelescope/drizzle") (home-page "https://github.com/spacetelescope/drizzle")
(synopsis (synopsis
"Astronomical tool for combining dithered images into a single image") "Astronomical tool for combining dithered images into a single image")
(description (description
"The drizzle library is a Python package for combining dithered images into "The drizzle library is a Python package for combining dithered images
a single image. This library is derived from code used in DrizzlePac. Like into a single image. This library is derived from code used in DrizzlePac.
DrizzlePac, most of the code is implemented in the C language. The biggest Like DrizzlePac, most of the code is implemented in the C language. The
change from DrizzlePac is that this code passes an array that maps the input to biggest change from DrizzlePac is that this code passes an array that maps the
output image into the C code, while the DrizzlePac code computes the mapping by input to output image into the C code, while the DrizzlePac code computes the
using a Python callback. Switching to using an array allowed the code to be mapping by using a Python callback. Switching to using an array allowed the
greatly simplified.") code to be greatly simplified.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-ephem (define-public python-ephem