python313Packages.pyregion: 2.2.0 -> 2.3.0
Diff: https://github.com/astropy/pyregion/compare/2.2.0...v2.3.0 Changelog: https://github.com/astropy/pyregion/blob/v2.3.0/CHANGES.rst
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
fetchFromGitHub,
|
||||
# needed to build
|
||||
cython,
|
||||
extension-helpers,
|
||||
oldest-supported-numpy,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
wheel,
|
||||
# needed to run
|
||||
astropy,
|
||||
numpy,
|
||||
@@ -20,36 +20,30 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyregion";
|
||||
version = "2.2.0";
|
||||
version = "2.3.0";
|
||||
pyproject = true;
|
||||
|
||||
# pypi src contains cython-produced .c files which don't compile
|
||||
# with python3.9
|
||||
src = fetchFromGitHub {
|
||||
owner = "astropy";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-r2STKnZwNvonXATrQ5q9NVD9QftlWI1RWl4F+GZSxVg=";
|
||||
repo = "pyregion";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-mEO2PbUSTVy7Qmm723/lGL6PYQzbRazIPZH51SWebvs=";
|
||||
};
|
||||
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
# Try to remove on next update. generated code returns a NULL in a
|
||||
# function where an int is expected.
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
astropy
|
||||
numpy
|
||||
pyparsing
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
cython
|
||||
extension-helpers
|
||||
oldest-supported-numpy
|
||||
setuptools
|
||||
setuptools-scm
|
||||
wheel
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
@@ -66,7 +60,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/astropy/pyregion/blob/${version}/CHANGES.rst";
|
||||
changelog = "https://github.com/astropy/pyregion/blob/${src.tag}/CHANGES.rst";
|
||||
description = "Python parser for ds9 region files";
|
||||
homepage = "https://github.com/astropy/pyregion";
|
||||
license = licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user