python3Packages.pytest-astropy: modernize (#462005)

This commit is contained in:
dotlambda
2025-11-16 16:32:53 +00:00
committed by GitHub

View File

@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchPypi,
attrs,
hypothesis,
pytest,
pytest-arraydiff,
@@ -14,7 +13,6 @@
pytest-remotedata,
setuptools,
setuptools-scm,
pythonOlder,
}:
buildPythonPackage rec {
@@ -22,22 +20,19 @@ buildPythonPackage rec {
version = "0.11.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Tq6qme2RFj7Y+arBMscKgfJbxMEvPNVNujKfwmxnObU=";
};
nativeBuildInputs = [
build-system = [
setuptools
setuptools-scm
];
buildInputs = [ pytest ];
propagatedBuildInputs = [
attrs
dependencies = [
hypothesis
pytest-arraydiff
pytest-astropy-header
@@ -51,10 +46,11 @@ buildPythonPackage rec {
# pytest-astropy is a meta package that only propagates requirements
doCheck = false;
meta = with lib; {
meta = {
changelog = "https://github.com/astropy/pytest-astropy/releases/tag/v${version}";
description = "Meta-package containing dependencies for testing";
homepage = "https://astropy.org";
license = licenses.bsd3;
homepage = "https://github.com/astropy/pytest-astropy";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}