Unverified Commit e106e148 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.pytest-astropy: modernize (#462005)

parents 1c228219 97fcfba0
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -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 = [ ];
  };
}