14 buildPythonPackage rec {
18 # pypi src contains cython-produced .c files which don't compile
20 src = fetchFromGitHub {
24 sha256 = "1izar7z606czcyws9s8bjbpb1xhqshpv5009rlpc92hciw7jv4kg";
27 propagatedBuildInputs = [
33 # Upstream patch needed for the test to pass
36 name = "conftest-astropy-3-fix.patch";
37 url = "https://github.com/astropy/pyregion/pull/136.patch";
38 sha256 = "13yxjxiqnhjy9gh24hvv6pnwx7qic2mcx3ccr1igjrc3f881d59m";
42 nativeBuildInputs = [ astropy-helpers cython ];
44 checkInputs = [ pytestCheckHook pytest-astropy ];
46 # Disable automatic update of the astropy-helper module
48 substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
51 # Tests must be run in the build directory
60 description = "Python parser for ds9 region files";
61 homepage = "https://github.com/astropy/pyregion";
62 license = licenses.mit;
63 maintainers = [ maintainers.smaret ];