Unverified Commit c888b7ed authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

python312Packages.simplesat: 0.8.2 -> 0.9.0 (#339957)

parents 8bcaf56a 4ff98df7
Loading
Loading
Loading
Loading
+25 −13
Original line number Diff line number Diff line
@@ -4,14 +4,16 @@
  writeText,
  lib,
  attrs,
  six,
  mock,
  okonomiyaki,
  pytestCheckHook,
  pyyaml,
  setuptools,
  six,
}:

let
  version = "0.8.2";
  format = "setuptools";

  version = "0.9.0";
  versionFile = writeText "simplesat_ver" ''
    version = '${version}'
    full_version = '${version}'
@@ -24,27 +26,37 @@ in
buildPythonPackage rec {
  pname = "simplesat";
  inherit version;

  propagatedBuildInputs = [
    attrs
    six
    okonomiyaki
  ];
  pyproject = true;

  src = fetchFromGitHub {
    owner = "enthought";
    repo = "sat-solver";
    rev = "v${version}";
    hash = "sha256-6BQn1W2JGrMmNqgxi+sXx06XzNMcvwqYGMkpD0SSpT8=";
    rev = "refs/tags/v${version}";
    hash = "sha256-8sUOV42MLM3otG3EKvVzKKGAUpSlaTj850QZxZa62bE=";
  };

  preConfigure = ''
    cp ${versionFile} simplesat/_version.py
  '';
  dontUseSetuptoolsCheck = true;

  build-system = [ setuptools ];

  dependencies = [
    attrs
    okonomiyaki
    six
  ];

  pythonImportsCheck = [ "simplesat" ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
    pyyaml
  ];

  pytestFlagsArray = [ "simplesat/tests" ];

  meta = with lib; {
    homepage = "https://github.com/enthought/sat-solver";
    description = "Prototype for SAT-based dependency handling";