Unverified Commit 8dbc12a9 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #262479 from fabaff/pvo-bump

python311Packages.pvo: 1.0.0 -> 2.0.0
parents 046c7199 6e80d81f
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -13,18 +13,25 @@

buildPythonPackage rec {
  pname = "pvo";
  version = "1.0.0";
  version = "2.0.0";
  format = "pyproject";

  disabled = pythonOlder "3.10";
  disabled = pythonOlder "3.11";

  src = fetchFromGitHub {
    owner = "frenck";
    repo = "python-pvoutput";
    rev = "refs/tags/v${version}";
    hash = "sha256-6oVACUnK8WVlEx047CUXmSXQ0+M3xnSvyMHw5Wttk7M=";
    hash = "sha256-SvsrvGwIAlj/8hdk90+rxigVrx6n3YInvF/4eux2H04=";
  };

  postPatch = ''
    # Upstream doesn't set a version for the pyproject.toml
    substituteInPlace pyproject.toml \
      --replace "0.0.0" "${version}" \
      --replace "--cov" ""
  '';

  nativeBuildInputs = [
    poetry-core
  ];
@@ -41,13 +48,6 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  postPatch = ''
    # Upstream doesn't set a version for the pyproject.toml
    substituteInPlace pyproject.toml \
      --replace "0.0.0" "${version}" \
      --replace "--cov" ""
  '';

  pythonImportsCheck = [
    "pvo"
  ];