Commit 028a22bd authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python312Packages.viewstate: unbreak, switch to pyproject, run checks

parent 893e5bd8
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  isPy3k,
  lib,
  pytest,
  poetry-core,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "viewstate";
  version = "0.6.0";
  format = "setuptools";
  disabled = !isPy3k;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "yuvadm";
@@ -19,11 +18,11 @@ buildPythonPackage rec {
    sha256 = "sha256-cXT5niE3rNdqmNqnITWy9c9/MF0gZ6LU2i1uzfOzkUI=";
  };

  nativeCheckInputs = [ pytest ];
  build-system = [ poetry-core ];

  checkPhase = ''
    pytest
  '';
  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = ".NET viewstate decoder";