@@ -1925,3 +1925,29 @@ (define-public primecount
counts the number of primes ≤ x (maximum 10^31) using highly optimized
implementations of the combinatorial prime counting algorithms.")
(license license:bsd-2)))
+
+(define-public python-primecountpy
+ (package
+ (name "python-primecountpy")
+ (version "0.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "primecountpy" version))
+ (sha256
+ (base32
+ "0xh6zx5zw5scy7jygqirks9y6z4zyfm0zjfp8nd6dw0m471przkq"))))
+ (build-system python-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-before 'build 'set-cflags
+ (lambda _
+ (setenv "CFLAGS" "-fopenmp")
+ (setenv "CXXFLAGS" "-fopenmp"))))))
+ (inputs (list pari-gp primecount))
+ (native-inputs (list python-cython))
+ (propagated-inputs (list python-cysignals))
+ (home-page "https://github.com/dimpase/primecountpy")
+ (synopsis "Cython interface for primecount")
+ (description
+ "This package provides a cython interface for the primecount library.")
+ (license license:gpl3)))